Skip to content

Instantly share code, notes, and snippets.

@rutvij-pandya
Created June 6, 2016 07:13
Show Gist options
  • Save rutvij-pandya/e8220b1aa5a45f4aeb0c096c1328c290 to your computer and use it in GitHub Desktop.
Save rutvij-pandya/e8220b1aa5a45f4aeb0c096c1328c290 to your computer and use it in GitHub Desktop.
AWS Part 3-Server Aliasing
Open bash_profile file
>> vi ~/.bash_profile
Add Alias in bash_profile file
>> alias ssh-nat="ssh -i ~/.ssh/key-pair.pem ec2-user@1.1.1.1" # Replace with actual server ip
Save
>> :wq
Refresh file
>> source ~/.bash_profile
Try Alias
>> ssh-nat
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment