Docs / Server Management / How to Transfer Files to Your Server with SCP

How to Transfer Files to Your Server with SCP

By Admin · Feb 25, 2026 · Updated Apr 24, 2026 · 515 views · 1 min read

SCP (Secure Copy Protocol) lets you transfer files between your local machine and your Breeze over SSH.

Upload a File

scp /local/path/file.txt root@YOUR_IP:/remote/path/

Download a File

scp root@YOUR_IP:/remote/path/file.txt /local/path/

Upload a Directory

scp -r /local/directory root@YOUR_IP:/remote/path/

Using a Custom SSH Port

scp -P 2222 file.txt root@YOUR_IP:/remote/path/

Alternative: rsync

For large or frequent transfers, rsync is more efficient:

rsync -avz /local/path/ root@YOUR_IP:/remote/path/

Was this article helpful?