ToC1. What you need before you start

Name of the machine to connect to

You need to know the hostname (or numeric IP address) of the computer you want to download from or upload to.

The names of Internet computers are usually in the format machine.site.network, for example rtfm.mit.edu or www.ucc.ie. An IP address is four numbers separated by dots, eg 18.181.0.29. Note that some countries add a fourth, and sometimes even a fifth element to the name, eg juno.cs.soton.ac.uk.

Filename[s] you want to upload or download

You also need the names and folders (directories) of the files you want to get or send. If you are using a web-page editor to update your web site, it ought to know already what pages you have edited amd want to upload.

Username and password

You need a valid username and password for the remote machine you want to send files to or get files from. If you are using SFTP or SCP for a web site upload, you will have been given your usename and password by the Webmaster.

Frequently-Asked Questions

Why not just use a browser?

Web browsers like Firefox (Mozilla), Internet Explorer, Netscape, Lynx, Opera, Konqueror, etc can only be used for old-style FTP file transfers, and they are restricted by their nature to handling one file per click: for a whole directory-full of files you have to get or send them one by one, which is very tedious. Standard FTP programs like FileZilla, gFTP, and FireFTP now all operate the secure methods, and can download or upload whole directories of files with a single click, which makes them much preferable for large-scale work like uploading Web sites or getting multiple files from a repository.

This is changing: some browsers can now upload directories, but they still can't do SFTP.

Why not use a Web editor?

Web editor programs like HoTMetal and DreamWeaver all have SFTP uploading (‘publishing’) built in, and this can be used to manage a Web site very efficiently. However, as cautioned in the Site Owners' Guide, these routines are often very hard to set up, as they confuse the URI of a site (the public address that users go to) with the login name and directory that the site owner uses to upload files (the two are related but almost never identical). In these cases, a stand-alone SFTP program is much simpler and more reliable.

ToC2. Installing the software

All Internet-ready computers should have an SFTP or SCP program (called an SFTP or SCP ‘client’) already installed. If not, complain to your supplier or download and install one yourself.

On the UCC campus, staff and student computers have a standalone SFTP or SCP client called puTTY installed. As an alternative for student use (easier) you can install Firefox on your memory stick and then install the FireFTP plugin in Firefox to do your uploads.

Linux

The command-line SFTP and SCP programs are installed by default on all Unix-like systems. You can also install graphical versions like FileZilla or gFTP via your system updater (RPM, apt-get, yum, MacPorts, etc)

Microsoft Windows

There is a command-line SFTP/SCP built into the campus licensed copy of puTTY which is installed on staff amd student computers in UCC. Two of the many alternative graphical systems available are:

FileZilla

In your Web browser, click on http://filezilla-project.org/ and download and install the FileZilla Client.

If you are using a student lab, you must install FileZilla to your USB memory stick because you cannot install software to the hard disk.

FireFTP

This is a plugin for the Firefox browser. You have to install Firefox first (a replacement for Internet Explorer).

  1. Install Firefox from http://www.firefox.com.

    If you are using a student lab, you must install Firefox to your USB memory stick because you cannot install software to the hard disk.

  2. Install FireFTP from http://fireftp.mozdev.org/ into Firefox.

Apple Mac

Get Fugu (OS X) or Fetch (OS/9) and install it. The UCC Mac Users Group can advise on other software.

ToC3. Command-line file transfer

The standard command-line form of SFTP and SCP programs is where you type commands line by line. This is not as pretty as a windowing system but it's faster and simpler. You can also install graphical systems such as FireFTP (in Firefox), gFTP, or FileZilla (see [reference to element type "" has not been provided for]).

Up to start of section3.1. Command-line access under Windows

[awaiting information]

Up to start of section3.2. Command-line access on Unix-like systems (Linux and Apple Mac OS X)

Up to start of subsection3.2.1. Making a connection

Standard command-line SFTP needs no setting up: you just type at the command prompt

$ sftp username@host.site.domain

replacing username with your username on the remote system, and host.site.domain with the name of that system.

The first time you ever connect to a site, it will ask you if it is OK to accept the authenticity of the site. Answer yes (assuming that you are indeed certain that it's where you want to go!).

The program now connects to the remote site and will ask you to log in.

Up to start of subsection3.2.2. Logging in

Logging in means providing the password that goes with your username.

The remote site will prompt for your username: type it in and press Enter.

Connecting to www.ucc.ie...
username@www.ucc.ie's password:       

(It will not display anything, for security reasons.) You will be logged in and get the SFTP prompt which means the system is ready to accept your commands:

sftp>

Up to start of subsection3.2.3. Transferring files

To send a file from your current (local) directory to the server (into its current directory) type

put filename

To get a file from the server's current directory into your current local directory, type

get filename

More commonly, however, you first need to go to the right directory…

Up to start of subsection3.2.4. Finding your way around (navigating)

To see a list of files and folders in the current server directory, type  ls -l  , for example:

sftp> ls -l 
dr-xr-xr-x   2 ontology  system    512 Nov 21 01:07 bin 
drwxr-xr-x   2 ontology  webster   512 Nov 23 10:47 web
sftp>

To change directory on the server, type

cd directoryname

Subdirectories (folders) are indicated with a letter d in the first character position on the line. If you lose track of where you are, type  pwd  to show the current working directory on the server. To go back up to the previous directory level, type cd .. (that's two dots).

To see a list of files in your local (PC) directory, use the  lls -l   command. To change local directory, use  lcd directoryname , and to see what local directory you are in, use  lpwd

Up to start of subsection3.2.5. Finishing up

You have to wait while the file transfer you have requested finish. When it is done, you will see the sftp> prompt again, and you can send or retrieve another file, change directory again, or log off. To log off, just type  quit

ToC4. Setting up graphical systems

Up to start of section4.1. Setting up gFTP

You only need to do the setup once for each site you use.

Figure 1. Setting up gFTP

To set up a connection, give the following details:

  1. Type the hostname of the remote system in the Host box

  2. Leave the Port box blank

  3. Type your usename in the User box

  4. Type your password in the Pass box

    On public machines, leave this blank: it will then ask you for the password afresh each time and not store it, for security

  5. Set the dropdown menu on the right to SSH2

To connect, click the double-workstation icon on the extreme left. This automatically saves the setup for future use.

For information about transferring files, see section 5, ‘Transferring files in a graphical system’.

Up to start of section4.2. Setting up FileZilla

Up to start of section4.2. FileZilla

Figure 2. Setting up FileZilla

To set up a connection, give the following details:

  1. Type the hostname of the remote system in the Host box

  2. Type your usename in the Username box

  3. Type your password in the Password box

    On public machines, leave this blank: it will then ask you for the password afresh each time and not store it, for security

  4. Type 22 into the Port box

Press the Enter key to save the setup and connect to the server.

Up to start of section4.3. Setting up FireFTP

Up to start of section4.3. FireFTP

In the Firefox Tools menu, click on FireFTP. The drop-down menu in the top left-hand corner should be set to ‘Create an account’ and you should be prompted with the sub-window shown on the left of Figure 3 below.

Figure 3. Setting up FireFTP

 

To set up a connection, give the following details:

  1. Make up a name for this connection and type it into the Account Name box

  2. Leave the Category box blank

  3. Type the hostname of the remote system in the Host box

  4. Type your usename in the Login box

  5. Type your password in the Password box

    On public machines, leave this blank: it will then ask you for the password afresh each time and not store it, for security

Click on the Connection tab for the next stage.

  1. Set the Security drop-down menu to SFTP

  2. Optionally, set the Local box to the folder on your PC you most commonly use for file transfers

  3. Optionally, set the Remote box to the folder on the server you most commonly use for file transfers

    In the case of manually-maintained UCC web sites, this will be the web folder

Click on OK to save the setup.

ToC5. Transferring files in a graphical system

To connect to the server, click on the connection setting you set up in section 4, ‘Setting up graphical systems’.

All graphical file transfer systems display two main panes in the window. See the screenshots in section 4, ‘Setting up graphical systems’ for examples. The left-hand pane shows your local (PC) folder and the right-hand pane shows your remote (server) folder.

To transfer a file, open the correct folders in the left-hand and right-hand panes, and double-click the file you want to transfer. Doing this with a file in the left-hand (PC) pane will upload the file from your PC to the server; doing it in the right-hand (server) pane will download the file from the server to your PC.

Remember: upload means from your desktop/laptop to the remote server; download means from the remote server to your desktop/laptop.

To transfer a group of files, use the mouse or keyboard to highlight (select) all of them, then use the Transfer menu or toolbar icon (or arrow buttons between the panes, of provided) to transfer them.

If you include one or more folders in your selection, they and all their files and subfolders will be transferred.

Make sure you click on the Disconnect toolbar icon or menu entry when you are finished.

ToC6. Trouble-shooting

In WS_FTP, error messages are displayed in the small window at the bottom: watch out for them!

RSS newsfeedKeep up to date with our RSS newsfeed