October 24, 2021


Whether you're working on a remote development environment, managing cloud infrastructure, or just need to move some files between machines, knowing how to transfer files between your local system and a remote server is essential.
In this guide, we’ll cover several reliable methods for transferring files both to and from a remote server, using command-line tools and graphical interfaces.
Make sure you have:
scp is one of the most widely used tools to securely transfer files between machines over SSH.
scp username@remote_host:/path/to/remote/file /path/to/local/destinationscp user@192.168.1.10:/home/user/data.txt ~/Downloads/scp /path/to/local/file username@remote_host:/path/to/remote/destinationscp ~/Documents/report.pdf user@192.168.1.10:/home/user/To copy entire directories, add the -r (recursive) flag.
rsync is a powerful utility that’s ideal for syncing files and handling large or repeated transfers.
rsync -avz username@remote_host:/path/to/remote/file /local/destinationrsync -avz /local/file username@remote_host:/remote/destination# Local to Remote
rsync -avz ~/Projects/ user@192.168.1.10:/home/user/ProjectsBackup/rsync:SFTP allows interactive file management over SSH.
sftp user@remote_hostOnce connected, you can use:
get remote_file → to download from remote to localput local_file → to upload from local to remotels, cd, lcd, pwd, mkdir → to navigate and manage filessftp user@192.168.1.10
sftp> put ~/Documents/resume.pdf
sftp> get /home/user/config.yaml
sftp> byeIf you prefer a GUI, FileZilla is a popular tool that supports SFTP connections.
scp, rsync, or sftp.
sudo apt install openssh-client rsyncTransferring files between your local system and a remote server is a fundamental skill, whether you're managing cloud environments, deploying applications, or just backing up data. With tools like scp, rsync, sftp, and FileZilla, you have flexible and secure options to fit your workflow.
Thank you for reading! I hope you found this post insightful. Stay curious and keep learning!
📫 Connect with me:
© 2025 Ayush Rudani