aspose file tools*
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
Author

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.

Regards,
Sivaraman.L
Ulf Dittmer
Marshal

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


Ping & DNS - my free Android networking tools app
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 java.security.KeyPairGenerator 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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Implementing SSH for file upload