py_script
py_script

Reputation: 831

Set up an instance on AWS-Amazon but cannot connect

I am fairly new at EC2 technology so I think I am missing some points. So I set up an instance which is running and had created two key pairs. I choose the instance, choose "Connect" and the site gives me instructions about that. I follow them and when I execute the ssh command returns that "network is unreachable". Can you help me please?

Upvotes: 1

Views: 1379

Answers (2)

C.M.
C.M.

Reputation: 1561

If you're using Amazon Linux the username is ec2-user, which you can then run sudo from.

Upvotes: 0

chantheman
chantheman

Reputation: 5296

Okay a few things to check:

  1. Make sure you have the correct ports on your security group open to either your personal IP or to the world, depending on your security requirements. For example: Port Range 22, IP 0.0.0.0/0 (World) xx.xx.xx.xx/32 (personal IP)

  2. Next I would make sure you are executing the command correctly.If 1 does not work can you post the command?

  3. Another thing to check, although based off your error this probably isn't it, is that your have the proper permissions on your private key. chmod 600 mykey

Upvotes: 2

Related Questions