Create a gist now

Instantly share code, notes, and snippets.

@davidsword /rsa-3.bash Secret
Last active Dec 12, 2016

What would you like to do?
sudo vi ~/.bash_profile
# add the folowing
alias aws="ssh -p 42111 -i ~/.ssh/keyname.pem username@ip"
# save and close
# then reload your alias's
source .bash_profile
# now you can ssh into your aws server with 3 letters:
aws
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment