scp
The command that copies files to or from another machine over SSH, written as user@host:path.
In more detail
It uses the same keys and logins as ssh. It copies everything every time, so for directories you sync repeatedly rsync is better.
Example
scp -q backup.tar.gz deploy@web01:/srv/backups/Related terms
- SSH — A protocol for logging in to and running commands on another computer securely over a network.
- rsync — A file copying tool that sends only the parts that differ between source and destination, locally or over SSH.
Taught in
- Archives, Transfers And The Network — Bash Scripting & Command Line Automation
- Logins, su, sudo And SSH Between Hosts — Red Hat Certified System Administrator (EX200) Exam Prep