Data Transfer Tools: ftp and lftp

This article provides information about FTP (File Transfer Protocol) as a data transfer tool. In particular:

  • what is FTP?
  • where and how can I use FTP on JASMIN?
  • what are its limitations?

What is FTP?

FTP is a well-established transfer protocol enabling connections from a client to download files from, or upload files to, a server. A wide variety of client tools are available to the user, 2 implementations of which are available on the JASMIN transfer servers, although no server is provided. ftp is also the name of the basic FTP client program, see below.

Where and how can I use FTP on JASMIN?

FTP can only be used as a client on JASMIN, to pull data from external FTP servers to local storage on JASMIN, for example a Group Workspace or your home directory. There is no FTP server within JASMIN providing the ability to upload files to these locations. Please use an alternative, more secure method instead. See other Data Transfer Tools such as scp/rsync/sftpbbcp or GridFTP (over SSHcertificate-based or using Globus Online)

On the  transfer servers, you can use one of the installed FTP clients to download data from elsewhere. These are:

CEDA however runs 2 FTP servers within the JASMIN environment providing download-only access to the CEDA archive. Access to these is controlled by your CEDA account and any dataset-specific privileges which are associated with that account.

What are its limitations?

  • FTP was never designed as a secure protocol and has several limitations affecting how it can be used safely within an environment like JASMIN.
  • Some external sites offer anonymous FTP download. In this case, no username or password needs to be exchanged and (as long as the data resources do not need to be protected in any way) this can provide a simple but effective data transfer method.
  • Few external sites now provide FTP access to protected data resources, hence many data-intensive institutions are now focussing on more sophisticated data delivery methods which can meet the demands of security and performance in a multi-user environment.

Basic client usage: ftp

The ftp client is available on the transfer servers jasmin-xfer[123],

Example 1: Downloading a file to a location on JASMIN from a remote FTP server.

This involves setting up an interactive client session. Once logged in (in this case, using anonymous FTP), you use FTP commands to interact with the remote server and locate and download the data you require. The session is terminated with bye.

[username@jasmin-xfer1 temp]$ ftp
Trying 123.456.78.123...
Connected to (123.456.78.123).
220-Welcome message from
Name (123.456.78.123:username): anonymous
331 Please specify the password.
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> cd /sites/pub/testdir/
250-This is the somesite ftp repository.
250 Directory successfully changed.
ftp> get md5.sum
local: md5.sum remote: md5.sum
227 Entering Passive Mode.
150 Opening BINARY mode data connection for md5.sum (45 bytes).
226 Transfer complete.
45 bytes received in 0.00267 secs (16.83 Kbytes/sec)
ftp> bye
221 Goodbye.

Full details of commands available within an interactive session with the ftp client are available via the man page (man ftp).

Parallel-capable client usage: lftp

The alternative client lftp is less verbose, but the basic workflow is the same.

[username@jasmin-xfer1 temp]$ lftp
lftp> cd /sites/pub/testdir
cd ok, cwd=/sites/pub/testdir/                 
lftp> get md5.sum
45 bytes transferred                           
lftp> bye

The interactive shell provided by lftp also benefits from tab completion and use of up/down arrows for command history.

Still need help? Contact Us Contact Us