scp
NetworkingSecurely copy files between hosts over SSH
Options & Flags
Available options for this command
-rRecursively copy directories
-P portSpecify SSH port
-i keyfileUse specific private key
Examples
Common usage examples
Copy local file to remote server
scp file.txt user@remote:/path/Copy remote file to local directory
scp user@remote:/path/file.txt .Copy directory recursively
scp -r directory/ user@remote:/path/