Division of Archaeology computer support

Computing

Using SSH and SFTP on a Mac to connect to www.arch.cam.ac.uk

Introduction

This document describes how to move files from a Mac on to the Department’s web server. You can always obtain the latest version of this document from: http://www.arch.cam.ac.uk/comp/ac103/

SSH (Secure SHell)

SSH and SFTP come as standard with Mac OS X. Open the Finder:

Open Applications

Open Terminal

At the command prompt say something of the general form:

ssh -l username hostname

The character after the dash is a lowercase l for leather and you should replace CRSID with your CRSID. For example, my Cambridge email address is dir21@cam.ac.uk as a consequence of my CRSID being dir21. Therefore, to log in to the Department’s web server I say:

ssh -l dir21 www.arch.cam.ac.uk

Once you have logged in via SSH you can issue the command:

passwd

to change your password, or you can use vi or pico to edit your web pages (doing this requires some understanding of Unix).

Although you can use SFTP for file transfer from this command prompt, doing so requires some understanding of Unix. It is therefore easier to use the free SFTP GUI Fugu to transfer files between your Macintosh and the Department’s web server.

SFTP (Secure File Transfer Protocol)

Fugu is already installed on PWF Macs. Otherwise see the instructions Setting up SSH and SFTP on your computer for obtaining and installing Fugu. Once you have installed or Fugu, or if you are on a PWF Mac, open the Finder:

Open Applications

Double-click Fugu: