Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Confirmed.

Overview

SFTP is and SCP are a secure file transfer protocol protocols sending data over encripted encrypted SSH transport. One should notice that it's a single-stream protocol. It can also be significantly slower than bbcp or Globus Online due to its internal data encription. The protocol doesn't seem to be optimized for transferring data over a Wide Area Network (WAN).

Note that there is a similar protocol called SCP. In terms of its performance it has no difference from SFTP as they're both based on SSH. 

In general these tools are significantly slower compared to bbcp and Globus because all data are encrypted and are transferred over a single stream between the SLAC and the remote host. The transfer optimized tools bbcp and Globus typically don't encrypt the data and employ multiple streams to increase the transfer rate.

The main advantage of SFTP (or scp) is their easy of use compared to the other tools and that they are usually installed on any Linux/Unix computer. Both SFTP and SCP are based on SSH and will show the same performanceThe main benefit of sftp (or scp) is that it's very easy to use.

Usage examples

Here is a basic example of an interactive session (a password for SLAC UNIX user 'user' is being requested):

Code Block
% sftp user@psexport.slac.stanford.edu:/usr/work/user/reg/d/psdm/mfx/mfx12345/scratch/MyDataFile.dat ./
Connecting to psexport01.slac.stanford.edu...
user@psexport01.slac.stanford.edu's password:
Fetching /usr/work/user/MyDataFile.dat to ./MyDataFile.dat
...

For scp the similar command line would be used:
% scp user@psexport.slac.stanford.edu:/reg/d/psdm/mfx/mfx12345/scratch/MyDataFile.dat ./

The command can also be used in the batch mode. See UNIX man pages for further detail.