Skip to content

Instantly share code, notes, and snippets.

@gcaraciolo
Created March 10, 2017 00:44
Show Gist options
  • Save gcaraciolo/51e4fafce24b43e390484cf48ad75433 to your computer and use it in GitHub Desktop.
Save gcaraciolo/51e4fafce24b43e390484cf48ad75433 to your computer and use it in GitHub Desktop.
aws-ec2
download the key pair (key.pem) from aws
change its mode
$ chmod 400 key.pem
add it to ssh permanently to ssh store using *ssh-add* command
$ ssh-add key.pem
access the machine with ssh.
$ ssh ubuntu@xxx.xxx.xxx.xxx
if you want to not add the key to your ssh store, use this command instead, to access the machine
$ ssh -i key.pem ubuntu@xxx.xxx.xxx.xxx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment