Linux

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.

XsoftHost Support

Share

Recent Posts

Add Extra IP addresses to server configuration On Ubuntu 17.10 and later

Each failover IP address will need its own line in the configuration file. The configuration…

3 years ago

Create RAID Arrays with mdadm on Ubuntu

What is mdadm? The mdadm utility can be used to create and manage storage arrays…

4 years ago

How to change the maximum upload file size for PHP

There are several scenarios that you might need to increase or decrease your php maximum…

6 years ago

How to install Let’s Encrypt Plugin in WHM/cPanel

What is Let’s Encrypt? Let’s Encrypt is a free certificate authority provided by the Internet…

6 years ago

How to install python in my cPanel and add py extension

Python normally installed on all cPanel hosting server because most of Centos/red hat update system…

6 years ago

How to install and enable GUI GNOME Desktop on centos 7

Usually CentOS 7 comes in a numbers of variants, For most users, there are two…

6 years ago