Connect Amazon Instance and Terminate

To access your instance:

  1. Open an SSH client. (find out how to connect using PuTTY)
  2. Locate your private key file (you_key_pair_name.pem). The wizard automatically detects the key you used to launch the instance.
  3. Your key must not be publicly viewable for SSH to work. Use this command if needed:
    chmod 400 your_key_pair_name.pem
  4. Connect to your instance using its Public DNS:


ssh -i your_key_pair_name.pem
Please note that in most cases the username above will be correct, however please ensure that you read your AMI usage instructions to ensure that the AMI owner has not changed the default AMI username.
Incase of Ubuntu distribution default username will be  ubuntu.
Incase of other distributions default username will be  ec2-user.
This document was got from amazon. Take care of user name username
Terminate instance:
1. right click on name of your instance and then select “terminate” option.

I am Senior Software Engineer. I love reading, writing, sharing,developing, hiking, movies, trips, mountains, brooks, hills etc.

Tagged with:
Posted in amazon, Cloud computing and Big data

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: