Difference between revisions of "SecureCopy"

From UMIACS
Jump to navigation Jump to search
 
(10 intermediate revisions by 4 users not shown)
Line 2: Line 2:
  
 
==Using SCP==
 
==Using SCP==
The following commands work under RedHat Linux 3, 4, and 5, and Mac OS X.
+
The following commands work under Red Hat Enterprise Linux, Ubuntu Linux, and macOS.  
  
 
This command, when run from a terminal, will copy the file "source_file.txt" from the local machine to a folder inside the user's OpenLab account and give it the name "target_file.txt".
 
This command, when run from a terminal, will copy the file "source_file.txt" from the local machine to a folder inside the user's OpenLab account and give it the name "target_file.txt".
  wing:~ Ben$ scp source_file.txt bkirz@openlab.umiacs.umd.edu:Desktop/target_file.txt
+
  wing:~ Ben$ scp source_file.txt bkirz@openlab.umiacs.umd.edu:target_file.txt
  
 
This command, when run from a terminal, will copy the file "source_file.txt" from the user's OpenLab account into the current local directory and give it the name "target_file.txt".
 
This command, when run from a terminal, will copy the file "source_file.txt" from the user's OpenLab account into the current local directory and give it the name "target_file.txt".
  wing:~ Ben$ scp bkirz@openlab.umiacs.umd.edu:Desktop/source_file.txt target_file.txt
+
  wing:~ Ben$ scp bkirz@openlab.umiacs.umd.edu:source_file.txt target_file.txt
  
 
Note how the syntax of scp is very similar to that of the UNIX command cp with the addition of a hostname and username.
 
Note how the syntax of scp is very similar to that of the UNIX command cp with the addition of a hostname and username.
  
On Windows XP or Vista hosts there are no SCP clients installed by default.  Users can install [http://www.chiark.greenend.org.uk/~sgtatham/putty/ PuTTY], which will enable SSH and SCP access.
+
For UMIACS supported Windows hosts, WinSCP (available for download [http://winscp.net/eng/download.php here]) is already installed.  
 
 
Alternatively, all users can use the UMIACS Intranet SFTP Web Applet located [https://intranet.umiacs.umd.edu/ssh/ here] without installing any additional software.
 
  
 
==Further Information==
 
==Further Information==
[http://www.openssh.org/ OpenSSH]
+
* [http://www.openssh.org/ OpenSSH]
 +
* [http://winscp.net WinSCP]

Latest revision as of 14:12, 31 October 2016

Secure Copy (or SCP) is a way of copying data between two computers using SSH.

Using SCP

The following commands work under Red Hat Enterprise Linux, Ubuntu Linux, and macOS.

This command, when run from a terminal, will copy the file "source_file.txt" from the local machine to a folder inside the user's OpenLab account and give it the name "target_file.txt".

wing:~ Ben$ scp source_file.txt bkirz@openlab.umiacs.umd.edu:target_file.txt

This command, when run from a terminal, will copy the file "source_file.txt" from the user's OpenLab account into the current local directory and give it the name "target_file.txt".

wing:~ Ben$ scp bkirz@openlab.umiacs.umd.edu:source_file.txt target_file.txt

Note how the syntax of scp is very similar to that of the UNIX command cp with the addition of a hostname and username.

For UMIACS supported Windows hosts, WinSCP (available for download here) is already installed.

Further Information