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:
    ec2-31-322-46-116.us-west-2.compute.amazonaws.com

Example:

ssh -i your_key_pair_name.pem username@ec2-31-322-46-116.us-west-2.compute.amazonaws.com
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.
Note:
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.
Advertisements

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:

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s

StackOverFlow
Categories
Archives
%d bloggers like this: