wood burning stoves 2.0*
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


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
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
Author

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)?

Thanks!


SCJP 1.4 * SCWCD 1.4 * SCBCD 1.3 * SCJA 1.0 * TOGAF 8
 
Consider Paul's rocket mass heater.
 
subject: Upload/download files to/from SFTP server