Difference between revisions of "How to Transfer Files"

From Statistics Cluster
Jump to navigation Jump to search
Line 21: Line 21:
 
*Transferring to the cluster
 
*Transferring to the cluster
 
<pre>
 
<pre>
scp /cygdrive/c/Users/<username>/My\ Documents/path/to/file.txt username@stats.phys.uconn.edu:/path/to/remote/location
+
scp /cygdrive/c/Users/<personalUsername>/My\ Documents/path/to/file.txt username@stats.phys.uconn.edu:/path/to/remote/location
 
</pre>
 
</pre>
  
 
*Transferring from the cluster
 
*Transferring from the cluster
 
<pre>
 
<pre>
scp username@stats.phys.uconn.edu:/path/to/remote/file.txt /cygdrive/c/User/<username>/My\ Documents/path/to/local/location
+
scp username@stats.phys.uconn.edu:/path/to/remote/file.txt /cygdrive/c/User/<personalUsername>/My\ Documents/path/to/local/location
 
</pre>
 
</pre>

Revision as of 16:04, 11 September 2013

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. 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