Create a gist now

Instantly share code, notes, and snippets.

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:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment