File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Security and the fly likes Implementing SSH for file upload Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Security
Bookmark "Implementing SSH for file upload" Watch "Implementing SSH for file upload" New topic

Implementing SSH for file upload

Sivaraman Lakshmanan
Ranch Hand

Joined: Aug 02, 2003
Posts: 231
Hi All,
I am working on a application which uploads files to the server. I use apache file upload API for this functionality. Now we would like to make this file transfer secure by implementing SSH. Could someone please throw some light on how to implement SSH in the server and client side. If any article is available on the net which explains step by step process to implement SSH on the client and server side please provide the link .

My client is a Windows XP machine and the server is a Linux box. Also please suggest API for the same

Any help on this is very much Appreciate.

Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42959
The common file transfer mechanism over SSH is FTP, in the shape of SFTP. If you want to secure HTTP uploads, use HTTPS.
Sivaraman Lakshmanan
Ranch Hand

Joined: Aug 02, 2003
Posts: 231
Hi All,
We want to implement SSH2 for doing a FTP so could someone suggest a free API for doing the same. I tried JSCH but any other options are welcome. Moreover how should I create the private and public key for the same can I use with DSA algorithm. Please advice. I tried creating key pairs using putty key gen utility but it used AES algorithm which when used in JSCH I got a error saying invalid private key.
I agree. Here's the link:
subject: Implementing SSH for file upload
It's not a secret anymore!