Deepesh Naidu schrieb:

> I have been using jsch to transfer files from my linux server to other linux
> machines using authentication key files.
> But now I am trying to transfer files from my linux server to other windows
> machines using authentication key files.....But I keep getting auth fail
> error.
> 
> Please find below the sample code......
> [...]
> jsch.addIdentity("C:\\admin_rsa");

Does this file exist, and do you have a C:\admin_rsa.pub, too?
Also, does the server account "ascde" know this public key?

You might get more useful information by adding a logger.
Take the Logger example and copy the `JSch.setLogger()` line
as well as the MyLogger class.

Then post the output of your program, if it is not enough for
you to find the problem.


Paul

------------------------------------------------------------------------------
Simplify data backup and recovery for your virtual environment with vRanger. 
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Data protection magic?
Nope - It's vRanger. Get your free trial download today. 
http://p.sf.net/sfu/quest-sfdev2dev
_______________________________________________
JSch-users mailing list
JSch-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jsch-users

Reply via email to