Sunday, March 18, 2018

Create an alias for easier SSH access to remote server on MAC

Run these following commands in your terminal. Click "Read More" to full article.

1. Open the bash profile using nano editor:

$ nano ~/.bash_profile

2. Add this command to bash_profile

alias myalias='ssh'

3. Save & exit :

Press Ctrl+X

4. Restart the terminal and now you should be able to just type myalias to access to your remote server.

You can also use aliases as a shortcut to your lengthy command.


No comments: