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:
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:
To save a remote connection (so that you don't have to type in the command every time):
- Select Shell then New Remote Connection... from the top menu
- Under the Server column, click on the + icon to add a new connection.
- Enter the hostname when prompted by the dialog.
- Enter your username (usually UIC NetID) in the User field and click Connect.
Using Fetch for Secure FTP
Fetch is a popular SFTP application that is compatible with Mac OS X 10.5 or later.
- Fetch is available for free download from the Webstore.
- Save the .dmg file to an easily accessible location, like your desktop
- Double-click on the .dmg file.
- Drag the Fetch.app dog into your Applications folder.
- Then a dialog box will open asking whether you want to install the Fetch Dashboard widget. Click Not Now or Install Widget.
- Click OK when the Dashboard widget is installed.
- Double-click on the Fetch dog icon in your Applications folder.
- 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 ACCC common password.
Select SFTP from the dropdown list, and click Connect.
- 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.
- Then example1's home directory on tigger will be displayed in Fetch's screen:
- 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.
- 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.