Copy a full directory tree to a remote host.
Section: scp Basics
Upload a directory recursively
bash
bash
scp -r ./site/ user@example.com:/var/www/site/Explanation
Copy a full directory tree to a remote host.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing scp Basics