SecureCopy: Difference between revisions
(Updated to remove Win7 hosts) |
(Removed references to explicit RHEL versions) |
||
Line 2: | Line 2: | ||
==Using SCP== | ==Using SCP== | ||
The following commands work under | The following commands work under Red Hat Enterprise Linux, Ubuntu Linux, and Mac OS X. | ||
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". |
Revision as of 12:46, 3 June 2014
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 Mac OS X.
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, a SCP client is already installed. For other hosts, you can download and install PuTTY, which will enable SSH and SCP access.
Alternatively, all users can use the UMIACS Intranet SFTP Web Applet located here without installing any additional software.