SSH EC2 asking for password

后端 未结 16 1566
伪装坚强ぢ
伪装坚强ぢ 2020-12-24 05:45

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

I even chose the same server type, everything went well

16条回答
  •  时光取名叫无心
    2020-12-24 06:32

    Update

    Updating this answer because of the activity:

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

    For ubuntu it is

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

    For RHEL it is

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

    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
    

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

提交回复
热议问题