SCP Like a Boss


How to send and retrieve Files with SCP


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.

Send file to Remote :
  scp ~/my_local_file.txt [...]
Send file across 2 remote hosts
  scp user1@remotehost1:/some/remote/dir/foobar.txt user2@remotehost2:/some/remote/dir/
Retrieve file from Remote :
  scp ~/my_local_file.txt
 scp -r ~/my_local_file.txt


Port Options
 scp -P 2200
Verbose Options
  scp -v
Bandwith Options

limit 400

  scp rC -l 400
Ssh Options

identity file

  scp -i private_key.pem


  scp -F /home/user/my_ssh_config
Quiet mode Options
  scp -q

For more explanations:


© All rights reserved. Powered by Astro with ♥.