在远程亚马逊的Ubuntu服务器上,可以将私钥放入Mac的iTerm中成功登录。 ~ ssh Ubuntu @ 35.161.26.203-I/users/CRI fan/dev/dev _ root/Dar rot
welcometoubuntu 16.04.1 lts (GNU/Linux4.4.0- 53-generic x86 _ 64 ) )
* documentation :https://help.Ubuntu.com
* management :https://landscape.canonical.com
* support :https://Ubuntu.com/advantage
getcloudsupportwithubuntuadvantagecloudguest :
93数据包扫描更新。
0更新阵列安全更新。
* * *系统重启请求* * *
lastlog in : tue feb 7123360453360272017 from 58.209.166.119
以前使用SecureCRT的SSH似乎无法正常登录。
我现在就想去看看,可以用SecureCRT登录这个服务吗?
其中以前尝试过使用SSH v1,但无法登录。 theclienthasdisconnectedfromtheserver.reason :
protocolversionmismatch.requiredprotocolversionis 1.31.99.receivedversionwas 2.0。
apublickeyfilehasnotbeenspecifiedforthissession
Would you like to specify one now?
“结果”弹出对话框中只能选择*.pub类型文件
别人给我的是*.pem类型的文件像私钥文件吗?
securecrtapublickeyfilehasnotbeenspecifiedforthissession
-”服务器端未打开密码登录
是否要使用对应的pem文件登录,而不是-”?
请尝试取消选择公共密钥
结果: theclienthasdisconnectedfromtheserver.reason :
unabletoauthenticateusinganyoftheconfiguredauthenticationmethods。
“SSH客户端可能未打开密码认证,或者SSH服务端可能不允许密码认证。
如何打开服务器端密码验证:将/etc/ssh/sshd_config中的PasswordAuthentication条目更改为yes,然后重新启动服务。 $service sshd restart "
securecrt pem
先去学习:
重新连接:
然后,选择刚才生成的pub文件。
您将可以登录:
【总结】
在此,针对亚马逊EC2的服务器的pem文件,用SSH-keygen转换为pub文件,然后用SecureCRT登录ssh时,选中“用PublicKey方式”后,输入与pub对应的信息