Home / Blog / Post
Transfering Files With Scp
Added on 18th April 2018 in Snippet

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 chris-shaw.com:/var/www/file.txt ~/file.txt

Example Up

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

scp ~/file.txt chris-shaw.com:/var/www/file.txt


When transferring large files or lots of files, look into using compressions with tar.gz, see https://www.chris-shaw.com/blog/compressing-a-directory-on-linux

Hi there, I am christopher shaw, a software developer form South Yorkshire, England.

I love tinkering with all things tech, and opened this website as a web presence for myself and a place to keep my notes and snippets. Hopefully you will find something here to help

Christopher Shaw