Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
help:general_linux:filecopy [2019/05/21 19:54]
jebailie [Logging in using ssh]
help:general_linux:filecopy [2019/05/21 19:56]
jebailie [Using sftp]
Line 30: Line 30:
 ==== Using sftp ==== ==== Using sftp ====
  
-To start a sftp connection, type in a terminal ''​sftp USER@mote.cs.vassar.edu''​ where USER is replaced by your user name. There are only a few commands necessary for using sftp:+To start a sftp connection, type in a terminal ''​sftp ​-P 443 USER@mote.cs.vassar.edu''​ where USER is replaced by your user name. There are only a few commands necessary for using sftp:
  
 |''​ls''​| list files in current directory on remote computer| |''​ls''​| list files in current directory on remote computer|
Line 42: Line 42:
 ==== Using scp ==== ==== Using scp ====
  
-To copy a file from your computer to your computer science account:\\ ''​scp FILE USER@mote.cs.vassar.edu:/​home/​USER''​ where FILE is the file name (optionally with a path) and USER is your user name.+To copy a file from your computer to your computer science account:\\ ''​scp ​-P 443 FILE USER@mote.cs.vassar.edu:/​home/​USER''​ where FILE is the file name (optionally with a path) and USER is your user name.
  
-To copy a file from your computer science account to your computer:\\ ''​scp USER@mote.cs.vassar.edu:/​home/​USER/​PATH_TO_FILE ./''​ where PATH_TO_FILE is the file and USER is your user name. Note, the path ''​./''​ means current directory as a path cannot be ommitted here. You can use ''​man scp''​ to find out more information about scp. One commonly used flag is ''​-r'',​ which is used to recursively copy whole directories. For example: \\ ''​scp -r DIRECTORY USER@mote.cs.vassar.edu:/​home/​USER''​+To copy a file from your computer science account to your computer:\\ ''​scp ​-P 443 USER@mote.cs.vassar.edu:/​home/​USER/​PATH_TO_FILE ./''​ where PATH_TO_FILE is the file and USER is your user name. Note, the path ''​./''​ means current directory as a path cannot be ommitted here. You can use ''​man scp''​ to find out more information about scp. One commonly used flag is ''​-r'',​ which is used to recursively copy whole directories. For example: \\ ''​scp ​-P 443 -r DIRECTORY USER@mote.cs.vassar.edu:/​home/​USER''​
  
 ==== Graphical secure copy tools ==== ==== Graphical secure copy tools ====