I can not connect to my EC2 instane. I have opened port 21 in the AWS Console. I think there is no way of input my SSH Key pair in Coda. Is there a way of connecting Coda to my EC2 instance?
相关问题
- How to generate 12 digit unique number in redshift
- Use awslogs with kubernetes 'natively'
- JQ: Select when attribute value exists in a bash a
- JavaScript File Transfer SSH
- Assume/switch role in aws toolkit for eclipse 2.0
相关文章
- Right way to deploy Rails + Puma + Postgres app to
- how many objects are returned by aws s3api list-ob
- AWS S3 in rails - how to set the s3_signature_vers
- Passthrough input to output in AWS Step Functions
- I cannot locate production log files on Elastic Be
- ImportError: cannot import name 'joblib' f
- Static IP for Auto Scale in AWS
- Step function exceeding the maximum number of char
I struggled with this for some time, so sharing important steps for me:
That worked for me.
In the new version of Coda, there's a small icon of a key which shows up inside the password box on the right. If you click this, you can browse to the PEM file and choose that as your password.
The icon disappears once you click the password box, and as far as I can tell you can't get it back without making a new project.
Coda should pick up settings from your ssh config so you can configure this fairly easily.
If you've saved your EC2 ssh keypair in ~/.ssh/ec2_rsa then simply edit ~/.ssh/config to look like:
You can also restrict the IdentityFile directive to just your AWS resource with:
If everything's configured properly then you should be able to, from the command line, run
ssh username@awshost
and get a login promptIf you continue to have problems you can always enable password authentication on your instance by editing
/etc/ssh/sshd_config
and adding the linePasswordAuthentication yes
to the end of the file, then setting a password for your user withpasswd
I use the following settings in my .ssh/config to automatically apply my EC2 keypairs for EC2 resources: