Changes

Jump to navigation Jump to search
1,024 bytes added ,  18:43, 18 October 2016
no edit summary
Line 29: Line 29:  
scp username@stats.phys.uconn.edu:/path/to/remote/file.txt  
 
scp username@stats.phys.uconn.edu:/path/to/remote/file.txt  
 
/cygdrive/c/User/<personalUsername>/My\ Documents/path/to/local/location
 
/cygdrive/c/User/<personalUsername>/My\ Documents/path/to/local/location
 +
</pre>
 +
 +
== Transferring To/From Local Machine From/To Stats ==
 +
 +
Sometimes it is necessary to transfer files between your local machine and stats. This can become complicated if the local machine is not on the UConn network. In this case the connection is:
 +
<pre>
 +
local machine -> intermediate UConn machine -> stats.phys.uconn.edu
 +
</pre>
 +
 +
The first step before being able to transfer files is to set up port forwarding in a separate terminal
 +
<pre>
 +
Terminal 1:
 +
ssh -L9999:stats.phys.uconn.edu:22 <username for intermediate machine>@<hostname of intermediate machine>
 +
 +
Ex: ssh -L9999:stats.phys.uconn.edu:22 TestUser@MiddleMachine.uconn.edu
 +
</pre>
 +
 +
Once the port forwarding has been set, files can be transferred between the two endpoints. To transfer a file from a local machine to stats:
 +
<pre>
 +
scp -P 9999 /path/to/local/file.txt <stats username>@localhost:/path/to/stats/file.txt
 +
</pre>
 +
 +
To transfer from stats to a local machine:
 +
<pre>
 +
scp -P 9999 <stats username>@localhost:/path/to/stats/file.txt /path/to/local/file.txt
 
</pre>
 
</pre>
191

edits

Navigation menu