Warning: session_start(): open(/var/cpanel/php/sessions/alt-php74/sess_b3174c13c277f3e8263c72ceffbb982c, O_RDWR) failed: No such file or directory (2) in /home/xsofthost/public_html/help/wp-content/plugins/accelerated-mobile-pages/includes/redirect.php on line 358

Warning: session_start(): Failed to read session data: files (path: /var/cpanel/php/sessions/alt-php74) in /home/xsofthost/public_html/help/wp-content/plugins/accelerated-mobile-pages/includes/redirect.php on line 358
Install FTP on Linux and connect to FTP Server - XsoftHost

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.

Share on facebook
Share on twitter
Share on linkedin
Share on telegram
Share on whatsapp

Related Posts