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
Register / Login
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Reply 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://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Upload/download files to/from SFTP server
 
Similar Threads
SFTP in a Java application
sftp
JSP Help!!
Remove ^M character in text file
Suggestion for SFTP from client side applet