How to Transfer Files

From Statistics Cluster
Jump to navigation Jump to search

How to Transfer Files

A safe way to transfer files to and from the cluster to a personal computer is to use the scp (Secure Copy) command.

The basic form of scp is

  • Transferring to the cluster
scp /path/to/local/file.txt username@stats.phys.uconn.edu:/path/to/new/remote/location/
  • Transferring from the cluster
scp username@stats.phys.uconn.edu:/path/to/remote/file.txt /path/to/new/local/location/

For Windows Users

For Windows users it may be useful to download the program Cygwin. This is a Windows version of a terminal that has ssh and scp capability as well as many others. Using this program scp will look like the following

  • Transferring to the cluster
scp /cygdrive/c/Users/<personalUsername>/My\ Documents/path/to/file.txt username@stats.phys.uconn.edu:/path/to/remote/location
  • Transferring from the cluster
scp username@stats.phys.uconn.edu:/path/to/remote/file.txt /cygdrive/c/User/<personalUsername>/My\ Documents/path/to/local/location