Windows下如何用SecureCRT连接Amazon EC2

1、如果SecureCRT的版本大于6.5 beta 2

Support for Amazon EC2 keys has been implemented in SecureCRT 6.5 beta 2 and later. If you would like to try it, you can download it (http://www.vandyke.com/download/securecrt/beta.html) from the following web page.
  http://www.vandyke.com/download/securecrt/download.html 

To use the Amazon EC2 private key: 

Create an SSH2 session 

Specify PublicKey as the authentication method in Session Options / SSH2 

Set the Amazon EC2 key as the private key to use for the session 

Select PublicKey in Session Options / SSH2 

Click the Properties button 

Select Use session public key setting 

Browse to or enter the path to the EC2 private key in the entry box under Use identity or certificate file 

Connect to the EC2 server

2、如果SecureCRT的版本小于6.5 beta 2

首先在 AWS 管理面板中生成密钥对。

将密钥上传到一台自己的linux主机,下面举例文件名为 amazon-ec2-key.pem

修改Amazon提供的密钥文件权限:

chmod og-r amazon-ec2-key.pem

改写密钥格式为 OpenSSH,如果询问passphrase可以留空(直接回车)

ssh-keygen -p -f amazon-ec2-key.pem

生成公密钥 .pub 文件。使用公密钥时,SecureCRT会询问私密钥或者.pem文件

ssh-keygen -e -f amazon-ec2-key.pem >amazon-ec2-key.pem.pub

现在可以在 SecureCRT 中使用刚生成的公密钥了,连接到Amazon EC2也无需再输入密码。


阅读更多
个人分类: linux基础学习
想对作者说点什么? 我来说一句

没有更多推荐了,返回首页

加入CSDN,享受更精准的内容推荐,与500万程序员共同成长!
关闭
关闭