SSH EC2 要求输入密码 [英] SSH EC2 asking for password
问题描述
我刚刚按照这里的视频设置了我的 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
我什至选择了相同的服务器类型,一切都很顺利,直到它要求我的 EC2 服务器的 root 密码......
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来说是
For ubuntu it is
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
并记得在 ssh'ing 之前 chmod 400
你的 pem 文件
and remember to chmod 400
your pem file before ssh'ing
这篇关于SSH EC2 要求输入密码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!