Christopher Shaw

Software Developer
Transfering Files With Scp

Using SCP you can transfer files easily between one computer and another where ssh is available. This article is reference notes on how to use scp.

About SCP

“Secure Copy Protocol. The SCP is a network protocol, based on the BSD RCP protocol, which supports file transfers between hosts on a network. SCP uses Secure Shell (SSH) for data transfer and uses the same mechanisms for authentication, thereby ensuring the authenticity and confidentiality of the data in transit.” Wikipedia


scp source destination

Example Down

Transfer a file from the /var/www directory of the server to my home directory.

scp ~/file.txt

Example Up

Transfer a file from my home directory to the /var/www directory of the server.

scp ~/file.txt


When transferring large files or lots of files, look into using compressions with tar.gz, see