You can create simple aliases to use in the terminal, to automatically connect to the destination.
First, enable aliases by editing ~/.bashrc and find these lines:
Code:
#if [ -f ~/.bash_aliases ]; then
# . ~/.bash_aliases
#fi
Uncomment them, and save it. Now create a new file called .bash_aliases in your $HOME directory, and this is where we will store our aliases. Here is a few examples of aliases you can make, which should help get you started:
Code:
alias mycroft="ssh 192.168.0.70"
alias maymith="ssh 192.168.0.101"
alias :q="exit"
Now, either logout, or run:
And your aliases will be loaded. Now you can run your alias in the terminal, just by running:
And it will actually be running:
But you won't have to type it
Bookmarks