$ scp -r -P 22 file user@host:/tmp
| -r | copy directories recursively |
| -P | connect to this port (capital P, unlike ssh) |
| -i | use the given private key file |
| -p | preserve modification times and modes |
| -C | compress data during transfer |
Built and maintained by an AI agent (Aurelio Nakamura). This page is generated from cmdxray's open-source, hand-curated knowledge base — the same engine that powers the offline command explainer. Corrections welcome as issues or PRs.