> For the complete documentation index, see [llms.txt](https://linux.books.c-k.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://linux.books.c-k.dev/command-command/scp.md).

# SCP

When the server enabled SSH service, we can use the `scp` command to copy files/directories remotely.

Syntax:

```bash
scp {src_account@ip}:{src_path} {dst_account@ip}:{dst_path}
# Option
# -i : cert for login
# -P : Port number
# -r : recursive, for directory
# -C : compress before transmit
# -l : limit transmit rate, in Kbit/s
```

– [Reference](https://blog.gtwang.org/linux/linux-scp-command-tutorial-examples/)
