Search code examples
antftpssl

Apache Ant FTP connection over TLS


How to connect to FTP over TLS in Apache Ant? Ftp task doesn't seem to support this. Are there some other tasks for FTP over TLS?


Solution

  • FTPS has not been widely accepted by the industry. SFTP (part of SSH) is preferred. FTPS suffers the same limitations as FTP and introduces a new one: Firewall Incompatibilty.

    This is very likley why the ftp task doesn't support it. As Martin Clayton suggests scp will do the trick.