aspose file tools*
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
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Upload/download files to/from SFTP server