How to install an FTP client on a Synology NAS

Author: Ingmar Verheij

A Synology NAS can be used as a FTP server out-of-the-box (after enabling it), but there is no FTP client installed that can be used from a interactive shell. You can install a FTP client, lftp by Alexander Lukyanov, using ipkg.

If you haven’t installed ipkg yet, please install it first (link).

Install package lftp

You can install the package lftp in with the command: ipkg install lftp

 

Disable certificate verification

By default lftp will check the ssl certificate of the destination. If no trusted certificate is found the command is not executed.

$ lftp user@provider.com:/directory
Password:
cd: Fatal error: Certificate verification: Not trusted

You can disable the certificate verification in lftp by setting an option in the ~/.lftp/rc file. This file does not exist by default, nor does the .lftp directory.

  1. Create the .lftp directory with the command : mkdir /root/.lftp
  2. Create and edit the rc file with the command : vi /root/.lftp/rc
  3. Press ‘i’ for edit mode
  4. Add the line : set ssl:verify-certificate no
  5. Exit edit mode by pressing Escape (twice)
  6. Close and save the file by pressing Z (capital z) twice)

Was once an enthusiastic PepperByte employee but is now working at Citrix. His blogs are still valuable to us and we hope to you too.