Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Two of the most widely available tools for secure file transfer are SCP (Secure Copy) and SFTP (Secure File Transfer Protocol) which utilize the SSH protocol to implement security.  While While SCP is a simple, non-interactive command line tool, it is often a more suitable choice when setting up unattended file transfers using scripts. Alternatively, SFTP is an interactive tool which offers features like remote file listing, copying, deleting, directory creation, etc.

While SCP and SFTP are available out of the box on Linux and Mac systems, ITS also offers downloads of Fetch (login required) for MacOS and WS_FTP (login required) for Windows from the Software Download site. In addition, SecureCRT also has SFTP capability. Below are some basic examples showing syntax for both tools. Note that while the examples are specific to Helium, they are broadly applicable, and both commands have extensive man pages available. 

 

Image Removedspecifying an alternate port from off-campus
Info

Off-campus access to the default ssh/scp/sftp port of 22 has been blocked at the campus border. Therefore, users must specify an alternate port in order for these tools to work

. Please consult with your service provider if you aren't sure what alternate port a resource uses. Helium uses port 40

from off campus. Helium and Neon use port 40 for off campus, non-VPN access. Some examples below show port specification. 

 

 SCP:

Panel
titleCopy file from local to Helium (note alternate port specification)

...

 
[user@local ~]$scp -P 40 file1 hawkid@helium.hpc.uiowa.edu:file1

 

Panel
titleCopy file1 and file2 to your home directory on Helium

...

 
[user@local ~]$scp file1 file2 hawkid@helium.hpc.uiowa.edu:file:~
Panel
 
titleCopy directory from local to Helium

...

 

[user@local ~]$scp -r dir1 hawkid@helium.hpc.uiowa.edu:dir1

 

...

 SFTP

Copy file from local to Helium (note alternate port specification):

...