pion
pion

Reputation: 3613

AWS EC2 (Amazon AMI Linux) ssh on Windows

I'm new with AWS EC2. I've the following situation:

  1. I launched AWS EC2 Micro Instance Amazon AMI Linux at the office.
  2. Everything works as expected. I could login to EC2 as ec2-user without any problem using PuTTY on WIndows.
  3. I then went home. It still worked fine.
  4. I then stopped and started it again.
  5. I tried to connect using PuTTY again. Unfortunately, it does not work anymore.
  6. I used http://network-tools.com/ to get my IP address (xxx.xxxx.xxx.xxx).
  7. Using ASW console, I went to NETWORK&SECURITY -> Security Group. I clicked "Inbound -> Create a new rule -> SSH". xxx.xxxx.xxx.xxx./32.

Unfortunately, it still does not work. Please help. Thanks in advance for your help.

Upvotes: 2

Views: 721

Answers (2)

YiFan Wu
YiFan Wu

Reputation: 123

u must use the public dns or public ip (associate the elastic ip to your instance.) By default the ssh 22 port opened.Jus use ssh -i private key file ec2-user@public ip to connect your remote server-an instance in amazon aws.

Upvotes: 0

Eric Hammond
Eric Hammond

Reputation: 22407

Your instance will get a new IP address when you stop and start it.

You can associate an Elastic IP Address with the instance after starting it each time if you want to use the same address to connect with it.

Upvotes: 3

Related Questions