Adon Smith
Adon Smith

Reputation: 1889

Can FTPSClient from Apache Java library be used to transfer a file over SFTP?

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

Answers (1)

Martin Prikryl
Martin Prikryl

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

Related Questions