How to create SSH ‘bookmarks’ | ViktorPetersson.com
Many people do not know that SSH comes with a bookmarkish feature out-of-the-box. All you need to do is to open up ~/.ssh/config (create it if it doesn’t exist) and add something like this:
host foobar
hostname aaa.bbb.ccc.ddd
port 2224(Please note that the second and third lines are indented with a space.)
Now you can SSH into ‘foobar’ by simply typing:
ssh foobar
And voila, you no longer need to remember all arbitrary ports, IPs and hostnames. All you need to remember is your bookmark.
Love it.