scp [options] source destinationArguments explained
- source and destination can be local paths or user@host:path remote paths.
- -r copies directories recursively.
- -P chooses SSH port.
Common examples
scp report.pdf alex@example.com:/home/alex/Uploads report.pdf to the remote home directory.
scp alex@example.com:/var/log/app.log .Downloads app.log to the current local directory.
| Field | Details |
|---|---|
| Command | scp |
| Category | Remote Access |
| Primary use | Copies files over SSH. |
| Syntax | scp [options] source destination |