{"id":387,"date":"2016-07-22T18:47:15","date_gmt":"2016-07-22T18:47:15","guid":{"rendered":"https:\/\/www.xsofthost.com\/help\/?p=387"},"modified":"2017-02-10T18:53:19","modified_gmt":"2017-02-10T18:53:19","slug":"how-to-install-ftp-client-linux-server-and-how-to-connect-to-ftp-server","status":"publish","type":"post","link":"https:\/\/www.xsofthost.com\/help\/how-to-install-ftp-client-linux-server-and-how-to-connect-to-ftp-server\/","title":{"rendered":"Install FTP on Linux and connect to FTP Server"},"content":{"rendered":"<h2>How To Install FTP client on Linux server and commands to connect to ftp server<\/h2>\n<p>When you are trying to connect to ftp server you are getting error <strong>lftp: command not found<\/strong> this is means that your ftp client not installed on linux . To solve the issue you have to install the <strong>FTP<\/strong> client on your Linux<\/p>\n<h3>How to install FTP Client on Linux<\/h3>\n<p>To install the FTP its quite simple just login to your server using <strong>pUTTY<\/strong> as root account and run the following command:<\/p>\n<div class=\"cmd\">\n<div><span class=\"text-green bold\">On Ubuntu 14.04 LTS<\/span><\/div>\n<div><span class=\"prompt\">apt-get install lftp<\/span><\/div>\n<div><span class=\"text-green bold\">On CentOS\/Fedora\/RHEL<\/span><\/div>\n<div><span class=\"prompt\">yum install lftp<\/span><\/div>\n<div><span class=\"text-green bold\">On Arch Linux<\/span><\/div>\n<div><span class=\"prompt\">sudo pacman -S lftp<\/span><\/div>\n<div><span class=\"text-green bold\">On OpenSuse<\/span><\/div>\n<div><span class=\"prompt\">sudo zypper install lftp<\/span><\/div>\n<\/div>\n<h3>Commands to connect to FTP server using lftp<\/h3>\n<p>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:<\/p>\n<div class=\"cmd\">\n<div><span class=\"prompt\">lftp <span class=\"text-orange\">FTP-SERVER-IP<\/span><\/span><\/div>\n<div><span class=\"prompt\">u <span class=\"text-orange\">ftp-username <\/span><\/span><\/div>\n<div>Password:<span class=\"text-orange\">Type your password<\/span><\/div>\n<div>lftp ftp-username@FTP-SERVER-IP:~&gt;<\/div>\n<\/div>\n<h3>lftp connection error<\/h3>\n<p>Sometimes you tried to run command ls to display the list of the directories and files and you got an error <strong>Fatal error: Certificate verification: certificate common name doesn&#8217;t match requested host name \u2018FTP-SERVER-IP\u2019 <\/strong> to solve the error you have to disable ssl connection to the FTP Server by run the following command:<\/p>\n<div class=\"cmd\">\n<div><span class=\"prompt\">set ssl:verify-certificate no<\/span><\/div>\n<div>lftp ftp-username@FTP-SERVER-IP:~&gt;<\/div>\n<\/div>\n<p>after this command you can now run the lftp commands successfully by passing the ssl certifcate.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>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 [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":363,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[41],"tags":[30,50],"_links":{"self":[{"href":"https:\/\/www.xsofthost.com\/help\/wp-json\/wp\/v2\/posts\/387"}],"collection":[{"href":"https:\/\/www.xsofthost.com\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.xsofthost.com\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.xsofthost.com\/help\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.xsofthost.com\/help\/wp-json\/wp\/v2\/comments?post=387"}],"version-history":[{"count":3,"href":"https:\/\/www.xsofthost.com\/help\/wp-json\/wp\/v2\/posts\/387\/revisions"}],"predecessor-version":[{"id":390,"href":"https:\/\/www.xsofthost.com\/help\/wp-json\/wp\/v2\/posts\/387\/revisions\/390"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.xsofthost.com\/help\/wp-json\/wp\/v2\/media\/363"}],"wp:attachment":[{"href":"https:\/\/www.xsofthost.com\/help\/wp-json\/wp\/v2\/media?parent=387"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xsofthost.com\/help\/wp-json\/wp\/v2\/categories?post=387"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xsofthost.com\/help\/wp-json\/wp\/v2\/tags?post=387"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}