Copy files between hosts over SSH. Check both source and destination paths.
scp ./report.txt user@host:/tmp/LINUX COMMAND ATLAS · COMMAND GUIDE
Copy files between hosts over SSH. Check both source and destination paths.
OpenSSHscp [OPTION]... SOURCE... TARGET
Copy files between hosts over SSH. Check both source and destination paths.
scp ./report.txt user@host:/tmp/Copy a local file to a remote directory.
scp report.txt alice@example.com:/tmp/Copy a directory tree using a custom SSH port.
scp -P 2222 -r ./site alice@example.com:/srv/backup/Modern OpenSSH scp uses SFTP by default. Quote remote paths containing spaces and confirm the destination before transferring.