使用ssh工具登录亚马逊云服务器

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

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值