Accessing your Amazon EC2 Linux instance using SSH

The following instructions are copied from the console.aws.amazon.com Console page:

  1. Open an SSH client. (find out how to connect using PuTTY)
  2. Locate your private key file (UbuntuDocker.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 UbuntuDocker.pem
  4. Connect to your instance using its Public IP: 54.85.160.138

Example:

ssh -i "UbuntuDocker.pem" ec2-user@54.85.160.138

Note: 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.

Tags:
Source:
1323hrs.txt
Published:
17-12-2015 13:23