SSH Bookmarks

If you are like many others, you spend a lot of time in the terminal window. It’s not rare that some people SSH into 10+ different servers in a day. Having easy-to-remember FQDNs makes it easier, but sometimes that’s not possible. Sometimes you only have an IP to a server, perhaps the server has a really long FQDN, or perhaps SSH is running on some arbitrary port. That makes your life harder.

Luckily there’s an easy fix for it using a built-in SSH feature. After we introduce this build SSH feature, we will show you an even better approach by using TaskTips.

Built-in SSH Bookmark

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.

Please note that this works on pretty much any platform except for Windows. But then again, if you’re this savvy, you probably know better than to run Windows in the first place =).

Use TaskTips to Index SSH Bookmarks

With the built-in SSH bookmark feature, you will have to maintain the SSH configuration file (~/.ssh/config) yourself. Whenever IP addresses or ports change, you will have to remember to modify this configuration file, which can become a large file when there are many remote servers you need to manage.

Also if you want to login to the remote server from a different dev machine, you will have to configure all the same again.

A simpler way is to create a new task in TaskTips and put the following command in as task instructions.

ssh -p [port] [user]@[ip_adress_or_domain_name]

Also give the task a name, for example:

Screenshot of new task

The task name and task instructions will be indexed and searchable from any machines where the TaskTips desktop is installed.

To execute this task, double tap Ctrl key (or your custom hotkey) and the TaskTips search box will be shown. In the search box, search the new task you have just created and you will see the task as shown below:

Screenshot of search

Select the task and press Enter key, this task will be executed automatically. That is, a new tab will be opened in Terminal window, and you will SSH to the remote server automatically.