Created
March 10, 2017 00:44
-
-
Save gcaraciolo/51e4fafce24b43e390484cf48ad75433 to your computer and use it in GitHub Desktop.
aws-ec2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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