1:使用 XShell登录
网友提供的很详细 参考 https://jingyan.baidu.com/article/a3a3f811d5fc338da2eb8a00.html
红帽的用户名 ec2-user
centos 的用户名是 root
2:使用SecureCRTPortable 登录
与XShell不同 ,XShell可以直接使用亚马逊提供的 ***.pem 文件,SecureCRT需要转为***.pub文件
[root@cent32 tem]# chmod og-r server.pem
[root@cent32 tem]# ssh-keygen -p -f server.pem
Key has comment 'server.pem'
Enter new passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved with the new passphrase.
[root@cent32 tem]# ssh-keygen -e -f server.pem >>server.pem.pub
[root@cent32 tem]# ls
server.pem server.pem.pub
[root@cent32 tem]# sz server.pem.pub
[root@cent32 tem]#
完成上述操作后,如下图描述
红帽系统使用
最近使用红帽系统发现不是root用户,使用了 sudo -s 才切回root
后记
- 菜鸟的我写给自己,当做个笔记。
参考
https://jingyan.baidu.com/article/a3a3f811d5fc338da2eb8a00.html
http://blog.csdn.net/pkueecser/article/details/18458587
https://www.question-defense.com/2009/10/01/convert-amazon-web-services-private-rsa-key-for-use-with-securecrt
http://blog.csdn.net/f59130/article/details/74014415