How do I use SSH and SFTP on Mac OS X/macOS?

Mac OS X/macOS has a built-in SSH client called Terminal, and a popular SFTP client called Fetch is available to the UIC community.
 

By default, the Terminal.app is located in Applications > Utilities folder. Double-click on the icon to start the client.

Using Terminal for SSH

At the prompt type:

ssh NetID@hostname

​where NetID is your UIC NetID and hostname is the hostname of the server you are trying to connect to. For example, if user example1 wants to connect to tigger.uic.edu, she would type:

ssh example1@tigger.uic.edu

To save a remote connection (so that you don't have to type in the command every time):

  1. Select Shell then New Remote Connection... from the top menu
  2. Under the Server column, click on the + icon to add a new connection.
  3. Enter the hostname when prompted by the dialog.
  4. Enter your username (usually UIC NetID) in the User field and click Connect.
    new remote connection screen

Using Fetch for Secure FTP

Fetch is a popular SFTP application that is compatible with Mac OS X 10.5 or later.

Installing Fetch

  1. Fetch is available for free download from the Webstore.
  2. Save the .dmg file to an easily accessible location, like your desktop
  3. Double-click on the .dmg file.
  4. Drag the Fetch.app dog into your Applications folder.
  5. Then a dialog box will open asking whether you want to install the Fetch Dashboard widget. Click Not Now or Install Widget.
  6. Click OK when the Dashboard widget is installed.

Using Fetch

  1. Double-click on the Fetch dog icon in your Applications folder.
  2. The connection dialog box opens. Fill in the Hostname:, Username:, and Password: boxes with the name of the machine you're connecting to, your login ID on that machine, and your password on that machine.
    In the figure, example1 is logging into tigger.uic.edu and her NetID is example1.
    The Password: is her Technology Solutions common password.
    Select SFTP from the dropdown list, and click Connect.
    fetch details and password fields
  3. If this is a connection that you will want to use again, click the heart icon at the end of the Hostname: line before you click Connect, and click Make Shortcut in the small dialog box that opens. This opens another dialog box where you enter the name for the shortcut. The default name for the shortcut will be the host name. If you also click Make this the default shortcut, it will be opened by default for you when you open Fetch. Click OK to create the shortcut. The shortcuts are listed in Fetch's other screen, Fetch Shortcuts, which is at the top left of your desktop, where you can delete or edit them. You can use them from the heart dialog box.
  4. Then example1's home directory on tigger will be displayed in Fetch's screen:
    file list
  5. You can highlight a file and click Get to download it, or click Put to open up a Mac file dialog box to select a file to upload. But it's easier to double-click on the name of a directory that you want to open, double-click the name of a file that you want download, and drag and drop a file from your Mac to the Fetch screen to upload it or vice versa.
  6. To change a file on the server's permissions or to delete it, Control-click on its name, and select Get Info or Delete item respectively. To change the permissions, click in the type of permissions you want to give and click Apply.
    fetch permissions

Details

Article ID: 582
Created
Fri 1/15/21 5:52 PM
Modified
Mon 6/7/21 2:27 PM