how to install a
lftp program on
CentOS and use it to transfer files between servers.
I used the below command but got an error as bad command.
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.Sign up to join this community
I would urge caution on using SFTP or FTPS if you're planning on exposing this traffic to the interent. You need to make absolutely certain that you're blocking TCP port 21 (normal, unsecured FTP), and that you disable anonymous logins over SFTP/FTPS.
While SFTP does have its uses, it uses SSH. Make sure you're on SSH v2 if you take that route. I would recommend using FTPS (uses an SSL, and default traffic is over TCP port 443). The real advantage of FTPS is that when a file transfer is interrupted, the file transfer will resume where it left off once a connection is re-established. SFTP will work fine for small files, but if you're going to transfer files that might take hours or days, FTPS is the better solution. If an SFTP transfer is interrupted for any reason, when the connection resumes, the transfer will have to start over from the beginning.
If your goal is to be able to transfer files internally within your own network, then learn how to use SCP (secure copy) and avoid the headache of patching LFTP as vulnerabilities are discovered.