Created
June 6, 2016 07:13
-
-
Save rutvij-pandya/e8220b1aa5a45f4aeb0c096c1328c290 to your computer and use it in GitHub Desktop.
AWS Part 3-Server Aliasing
This file contains hidden or 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
Open bash_profile file | |
>> vi ~/.bash_profile | |
Add Alias in bash_profile file | |
>> alias ssh-nat="ssh -i ~/.ssh/key-pair.pem [email protected]" # 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