Reputation: 1889
There is already a question on this:
Secure FTP with org.apache.commons.net.ftp.FTPClient
But there is no accepted answer given.
Upvotes: 1
Views: 8036
Reputation: 202682
First, make sure you understand a difference between FTPS (Secure FTP) and SFTP:
FTPS versus SFTP versus SCP
If you need FTPS (Secure FTP), follow advices given in the question you pointed to yourself:
Secure FTP with org.apache.commons.net.ftp.FTPClient
If you need SFTP, see:
How to retrieve a file from a server via SFTP?
Java SFTP Transfer Library
Upvotes: 4