The stuff I do

Scp

← Notes

Tags: [bash][scp]

Basically the same syntax as cp (i.e. scp [source] [dest])

# Local to remote
scp ./local/path user@remote-host:/home/user

# Remote to local
scp user@remote-host:/home/user ./local/path

Useful options 🔗

OptionUsage
-rCopy directories
-iProvide identity file
-PSpecify port

← Notes

Back to top