Last active
February 3, 2018 03:04
-
-
Save davidsword/e1e877f09f91af2278bad0fdb4d08696 to your computer and use it in GitHub Desktop.
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
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