Speed Up Making SSH/SFTP/FTP Connections – Mac Kung Fu, 2nd Edition

Tip 355Speed Up Making SSH/SFTP/FTP Connections

If you regularly create command-line connections to remote computers, you can speed up the process by creating bookmarks for the computers within Terminal.

Creating Bookmarks

This requires Terminal be added to the Dock, so do so by clicking and dragging it there from the Utilities folder within the Applications view of Finder. Start Terminal, right-click its icon, and select New Remote Connection in the menu that appears.

In the window that appears, select the type of connection you’d like to create (that is, SSH, SFTP, FTP, or Telnet), click the plus button under the Server list, and type the fully qualified domain name (FQDN) or IP address of the remote computer in the dialog box that appears. Then click OK to save the new bookmark. Then to test it, select it from under the Server heading, and click Connect to open a new Terminal window that, when it’s connected, will prompt you for your username and password in the usual way (you can speed up the procedure a little by typing your username into the User field of the aforementioned dialog box).

Making Connections

The bookmark is now stored. To make the connection in the future, start Terminal if it’s not already running, and then right-click it and again select New Remote Connection. Then in the window that appears, select the bookmark you created, and click the Connect button.

Many different server bookmarks can be defined in this way.

Connecting via Back to My Mac

If you have the Back to My Mac feature activated on the remote Mac (see Exploring OS X: iCloud), there should be no need to create a shortcut, assuming the following:

  • Both the remote and local computer are logged in with the same iCloud ID.

  • The remote computer has Remote Access enabled.

If this is the case, you could find that the remote computer is automatically listed when you select the Secure Shell (SSH) option within the New Remote Connection dialog box, as mentioned earlier. All you need to do is select it, type your username in the field, click the Connect button, and then type your password when prompted in the new Terminal window that appears.