Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision |
cs101:scpfromlinux [2020/09/03 21:49] – [Basic Syntax] localadmin | cs101:scpfromlinux [2020/09/08 16:51] (current) – [What Is SCP?] localadmin |
---|
====== How to transfer files between Linux/Mac computers using SCP from the Command Line ====== | ====== How to transfer files between Linux/Mac computers using SCP from the Command Line ====== |
This information is provided for the Ubuntu/Debian editions of Linux used in the CS Department. Other Linux versions may vary. | This information is provided for the [[https://www.ubuntu.com/|Ubuntu]]/Debian editions of Linux used in the CS Department. Other Linux versions may vary. |
| |
===== What Is SCP? ===== | ===== What Is SCP? ===== |
| |
In Linux, you can use the **Secure Copy Protocol** (**[[cs101:scp|SCP]]**) from the command line ([[cs101:cli|CLI]]) (the scp command) to securely copy files and directories between remote hosts without explicitly logging into the remote systems. The scp command uses [[cs101:ssh|SSH]] to transfer data, so it does requires a password or passphrase for authentication. Unlike **[[cs101:rcp|RCP]]** or **[[cs101:ftp|FTP]]**, scp encrypts both the file and any passwords exchanged so that anyone snooping on the network cannot view them. | In Linux, you can use the **Secure Copy Protocol** (**[[cs101:scp|SCP]]**) from the command line (**[[cs101:cli|CLI]]**) (the scp command) to securely copy files and directories between remote hosts without explicitly logging into the remote systems. The scp command uses **[[cs101:ssh|SSH]]** to transfer data, so it does requires a password or passphrase for authentication. Unlike **[[cs101:rcp|RCP]]** or **[[cs101:ftp|FTP]]**, SCP encrypts both the file and any passwords exchanged so that anyone snooping on the network cannot view them. |
| |
==== Basic Syntax ==== | ==== Basic Syntax ==== |
* Filename of the copy (destination_filename) | * Filename of the copy (destination_filename) |
| |
[options] can include things like -P //port// if not connecting to the standard port 22. | Options can include things like [-P //port//] if not connecting to the standard SSH port 22. |
| |
| |
| You can find more information on Ubuntu SCP in the [[http://manpages.ubuntu.com/manpages/focal/en/man1/scp.1.html|Ubuntu man pages]] |