Skip to content

Instantly share code, notes, and snippets.

@RamsesMartinez
Last active June 12, 2017 20:07
Show Gist options
  • Select an option

  • Save RamsesMartinez/189b78a3071de2e34aa4c0597aac9b04 to your computer and use it in GitHub Desktop.

Select an option

Save RamsesMartinez/189b78a3071de2e34aa4c0597aac9b04 to your computer and use it in GitHub Desktop.

To access your instance:

  1. Open an SSH client
  2. Locate your private key file (Key-Tesca.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 Key-Tesca.pem
  4. Connect to your instance using its Public DNS: ec2-123-456-789-123.us-west-2.compute.amazonaws.com

Example: ssh -i "Key-Tesca.pem" ubuntu@ec2-123-456-789-123.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. If you need any assistance connecting to your instance, please see our connection documentation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment