Transferring files through the network
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.
Getting ready
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
.
How to do it...
File Transfer Protocol (FTP) is a very old file transfer protocol for transferring files between machines on a network. We can use the command lftp
for accessing FTP-enabled servers for file transfer. FTP can only be used if the FTP server is installed on the remote machine. FTP is used in...