SSH EC2询问密码 [英] SSH EC2 asking for password

查看:259
本文介绍了SSH EC2询问密码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚安装我的EC2服务器下面这段视频正是在这里 - http://www.youtube.com/watch ?V = bBajLxeKqoY

I've just setup my EC2 server following this video here exactly - http://www.youtube.com/watch?v=bBajLxeKqoY

我甚至选择在同一台服务器类型,一切都进行得很顺利,直到它要求输入root密码,我的EC2服务器...

I even chose the same server type, everything went well until it asked for the root password to my EC2 server...

有什么建议?

推荐答案

更新,因为活动的这样的回答:

Update

Updating this answer because of the activity:

取决于系统是否ubuntu的或RHEL用户改变

Depending on if the system is ubuntu or Rhel the user varies.

有关Ubuntu的是

ssh -i my-pem-file.pem ubuntu@my-ec2-instance-address

对于RHEL是

For RHEL it is

ssh -i my-pem-file.pem root@my-ec2-instance-address


连接到一个EC2实例不需要密码,那就只需要一个PEM文件 这是如何连接到它


Connecting to an ec2 instance does not require a password, it would require only a pem file and this is how you connect to it

ssh -i my-pem-file.pem ec2-user@my-instance-address

和记得搭配chmod 400 ssh'ing之前,你的PEM文件

and remember to chmod 400 your pem file before ssh'ing

这篇关于SSH EC2询问密码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆