🧀 Learn Linux

Commonly used · Troubleshooting the network

scp:Copy files via SSH

Syntax

scp [-r] source user@host:target

Options

-r
Copy directories recursively

Examples

scp report.txt user@server:/tmp/

Usage and sandbox support

Manual reference only

Full documentation ↗

Related commands