Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Implementing SSH for file upload

 
Sivaraman Lakshmanan
Ranch Hand
Posts: 231
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 231
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic