Secure File Transfer with SCP, SFTP, and rsync
Move files between machines over the encrypted SSH channel. Compare scp, sftp, and rsync, learn their key options, and choose the right tool for one-off copies, interactive transfers, and efficient syncs.
Transferring Files over SSH
You have mastered tunnels, agents, and multi-hop connections. The same SSH foundation also powers secure file transfer — no extra service or open port required.
Three tools ride on SSH: scp for quick copies, sftp for interactive sessions, and rsync for efficient synchronization.
scp: Simple Copies
scp works just like cp but across machines. The remote side uses user@host:path syntax.
This uploads a local file to the server.
scp report.pdf deploy@server:/home/deploy/docs/All lessons in this course
- SSH Port Forwarding (Local/Remote)
- SSH Tunnels and SOCKS Proxy
- SSH Agent and Multi-hop
- Secure File Transfer with SCP, SFTP, and rsync