The major driver for networking of computers is resource sharing, and file sharing is the most prominent shared resource. There are different methods by which we can transfer files between different nodes on a network. This recipe discusses how to transfer files using commonly used protocols FTP, SFTP, RSYNC, and SCP.
The commands for performing file transfer over the network are mostly available by default with Linux installation. Files can be transferred via FTP using the lftp
command. Files can be transferred via a SSH connection using sftp
. Further, we can use RSYNC over SSH with rsync
command and transfer files through SSH using scp
.