SCP - Secure Copy Protocol

Using SCP to copy data.

Copy a directory and it's contents recursively.

sudo scp -r /home/user/data user@

Copy a file from remote directory to current directory.

scp user@ .
  • SCP does not support resuming if the transfer is interrupted.

  • If a file only got transferred partially it can be resumed with Rsync using the -P flag or SFTP using the -a flag.


-p Preserve modification time timestamps.


Manual Page - SCP