how to login to ec2 machine?

前端 未结 5 1595
借酒劲吻你
借酒劲吻你 2021-01-30 21:03

I was given some login information for an EC2 machine, basically an ec2-X-X-X.compute-X.amazonaws.com plus a username and password.

How do I access the machine? I tried

5条回答
  •  悲&欢浪女
    2021-01-30 21:48

    For this you need to be have a private key it's like keyname.pem.

    Open the terminal using ctrl+alt+t.

    change the file permission as a 400 or 600 using command chmod 400 keyname.pem or chmod 600 keyname.pem

    Open the port 22 in security group.

    fire the command on terminal ssh -i keyname.pem username@ec2-X-X-X.compute-X.amazonaws.com

提交回复
热议问题