This is the final part of this series and we’ll learn how to connect to a ftp site when we are behind a proxy or firewall, scheduling tasks with at command and queuing jobs with queue command.
In this part of this series we will learn how to deal with directories operations: create, download, upload and mirroring.
In the first part of this series we learned what lftp is and how to execute some basic ftp operations as connecting/login/exploring an ftp site; in this part we will learn how to deal with file operations: download, upload and change permissions.
lftp is a sophisticated ftp client that implements the following features:
– Handles different protocols: ftp, ftps, sftp, http, hftp, fish and bittorrent (https and ftps protocols will be available only if lftp was compiled with GNU TLS or OpenSSL libraries) …
After accessing your ftp site of your hosting provider you get the following error: Fatal error: Certificate verification: Not trusted you can fix it by running the following command in the current section.
Some ftp servers do not display by default hidden directories and files therefore lftp does not take care about them in certain operations, for example when trying to delete a directory that contains hidden files lftp throws the following error message: operation failed: 550 cannot delete directory: directory not empty (rm: Access failed: 550 Can't remove directory) To change this behavior.
Passive ftp connections are very common when set behind a proxy or firewall. In a passive ftp connection, the client sends the PASV command to the server and is the server who selects a port at random and sends it to the client. We must configure directive PassivePorts in ProFTPD.