如何配置 Coda 以适用于我的 Amazon EC2 实例?
我无法连接到我的 EC2 实例。我已在 AWS 控制台中打开端口 21。我认为在 Coda 中无法输入我的 SSH 密钥对。有没有办法将 Coda 连接到我的 EC2 实例?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
Coda 应该从您的 ssh 配置中获取设置,以便您可以相当轻松地进行配置。
如果您已将 EC2 ssh 密钥对保存在 ~/.ssh/ec2_rsa 中,则只需编辑 ~/.ssh/config 即可:
您还可以将 IdentityFile 指令限制为仅您的 AWS 资源:
如果一切配置正确,那么您应该能够从命令行运行
ssh username@awshost
并获取登录提示如果您仍然遇到问题,您可以随时通过编辑
/etc/ssh 在实例上启用密码身份验证/sshd_config
并将行PasswordAuthentication yes
添加到文件末尾,然后使用passwd
为您的用户设置密码我在我的 . ssh/config 自动将我的 EC2 密钥对应用于 EC2 资源:
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:
我为此苦苦挣扎了一段时间,因此为我分享重要的步骤:
这对我有用。
I struggled with this for some time, so sharing important steps for me:
That worked for me.
在新版本的 Coda 中,右侧的密码框中会显示一个小钥匙图标。如果单击此按钮,您可以浏览到 PEM 文件并选择它作为您的密码。
一旦您单击密码框,该图标就会消失,据我所知,如果不创建新项目,您就无法恢复它。
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.