SCP Like a Boss


scp copies files over a secure, encrypted network connection. scp stands for “secure copy.” If you are familiar with using the cp command on your local machine, scp is easy to understand.

  scp ~/my_local_file.txt [...] user@remote_host.com:/pathToRemoteDirectory
  scp user1@remotehost1:/some/remote/dir/foobar.txt user2@remotehost2:/some/remote/dir/
  scp user@remote_host.com:/pathToRemoteDirectory/remotefile ~/my_local_file.txt
 scp -r user@remote_host.com:/pathToRemoteDirectory/remotefile ~/my_local_file.txt
 scp -P 2200
  scp -v

limit 400

  scp rC -l 400

identity file

  scp -i private_key.pem

ssh_config

  scp -F /home/user/my_ssh_config
  scp -q