File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Sockets and Internet Protocols and the fly likes Upload/download files to/from SFTP server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "Upload/download files to/from SFTP server" Watch "Upload/download files to/from SFTP server" New topic

Upload/download files to/from SFTP server

Chengwei Lee
Ranch Hand

Joined: Apr 02, 2004
Posts: 884
I need to upload/down files to/from a UNIX box to a SFTP server. Could I use the FTPClient (Apache commons net) for it?

I also need to use key based authentication. So if I install my public key in the SFTP server, and private key in my UNIX box, would that be sufficient? That is, I need to login from within my application (for file transfer)?


SCJP 1.4 * SCWCD 1.4 * SCBCD 1.3 * SCJA 1.0 * TOGAF 8
I agree. Here's the link:
subject: Upload/download files to/from SFTP server
It's not a secret anymore!