Skip to content

Instantly share code, notes, and snippets.

@pictolearn
Last active May 13, 2019 18:41
Show Gist options
  • Save pictolearn/3a42d59e4a5b2ab084cd0328ad194622 to your computer and use it in GitHub Desktop.
Save pictolearn/3a42d59e4a5b2ab084cd0328ad194622 to your computer and use it in GitHub Desktop.
Connecting to an EC2 instance
#The following steps to be performed after you download the PEM file
# For windows user "Load" the key, save as private key w/o a password. Save the private key as a .ppk extension
# For mac and linux users you can just use the pem file
chmod 400 <key-file>
#How to ssh into the EC2 instance
ssh -i <key-name> ec2-user@IP-ADDRESS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment