Commands.app

scp

Networking

Securely copy files between hosts over SSH

Options & Flags
Available options for this command
-r

Recursively copy directories

-P port

Specify SSH port

-i keyfile

Use 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/
Related Commands
You might also find these useful