Install FTP on Linux and connect to FTP Server

How To Install FTP client on Linux server and commands to connect to ftp server

When you are trying to connect to ftp server you are getting error lftp: command not found this is means that your ftp client not installed on linux . To solve the issue you have to install the FTP client on your Linux

How to install FTP Client on Linux

To install the FTP its quite simple just login to your server using pUTTY as root account and run the following command:

On Ubuntu 14.04 LTS
apt-get install lftp
On CentOS/Fedora/RHEL
yum install lftp
On Arch Linux
sudo pacman -S lftp
On OpenSuse
sudo zypper install lftp

Commands to connect to FTP server using lftp

In this exmaple we are going to connect to FTP server name:FTP-SERVER-IP with user:ftp-username , from SSH pUTTY run the following commands:

lftp FTP-SERVER-IP
u ftp-username
Password:Type your password
lftp ftp-username@FTP-SERVER-IP:~>

lftp connection error

Sometimes you tried to run command ls to display the list of the directories and files and you got an error Fatal error: Certificate verification: certificate common name doesn’t match requested host name ‘FTP-SERVER-IP’ to solve the error you have to disable ssl connection to the FTP Server by run the following command:

set ssl:verify-certificate no
lftp ftp-username@FTP-SERVER-IP:~>

after this command you can now run the lftp commands successfully by passing the ssl certifcate.

1,970 total views, 1 views today

Install FTP on Linux and connect to FTP Server
4.8 (96%) 5 votes

Leave a Reply

Your email address will not be published. Required fields are marked *

*