---------- Forwarded message ----------
From: Andrew Wells <[email protected]>
Date: Mon, Jan 24, 2011 at 3:50 PM
Subject: Re: [JSch-users] Problem with JSch
To: Roland Schulz <[email protected]>
I am good at being ambiguous,
my main concern was this, I setup my program to take passwords, when using
it from computer1 to computer2 it works. However, if I do it the other way,
computer2 to computer1 (launched on computer2 same program same calls) it
fails.
with the error
com.jcraft.jsch.JSchException: Auth fail
at com.jcraft.jsch.Session.connect(Session.java:461)
at com.jcraft.jsch.Session.connect(Session.java:154)
On Mon, Jan 24, 2011 at 3:40 PM, Roland Schulz <[email protected]> wrote:
>
>
> On Mon, Jan 24, 2011 at 3:37 PM, Andrew Wells <[email protected]>wrote:
>
>> So, I have created a jar and it works as expected.
>>
>> However when I launch it from another machine, I get
>>
>> com.jcraft.jsch.JSchException: Auth fail
>> at com.jcraft.jsch.Session.connect(Session.java:461)
>> at com.jcraft.jsch.Session.connect(Session.java:154)
>>
>>
>> Is it possible, for the error messages to be more specific as to what had
>> caused the Authentication to fail.
>>
>> Also, if I have the systems setup to allow for PKI authentication, how
>> come it will not use that connection as default, why require a password?
>>
>> Does JSch look in ~/.ssh/ for key and known_hosts files?
>>
>
> No not automatically. See
> http://www.jcraft.com/jsch/examples/UserAuthPubKey.java
>
> <http://www.jcraft.com/jsch/examples/UserAuthPubKey.java>For how to set-up
> pub-key auth.
>
>
> Roland
>
> --
> ORNL/UT Center for Molecular Biophysics cmb.ornl.gov
> 865-241-1537, ORNL PO BOX 2008 MS6309
>
------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires
February 28th, so secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
JSch-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jsch-users