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 [...]
  scp user1@remotehost1:/some/remote/dir/foobar.txt user2@remotehost2:/some/remote/dir/
  scp ~/my_local_file.txt
 scp -r ~/my_local_file.txt
 scp -P 2200
  scp -v

limit 400

  scp rC -l 400

identity file

  scp -i private_key.pem


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