Skip to content

Instantly share code, notes, and snippets.

@davidsword
Last active February 3, 2018 03:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davidsword/e1e877f09f91af2278bad0fdb4d08696 to your computer and use it in GitHub Desktop.
Save davidsword/e1e877f09f91af2278bad0fdb4d08696 to your computer and use it in GitHub Desktop.
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