So I fixed the problem I was having,

I was scp from a file on my mac Computer1 to a linux machine Computer2

This worked fine.

However when I scp from a file on a linux Computer2 to mac Computer1 it
failed.


The problem, I had to enable pam, PasswordAuthentication. I also have set
ChallengeResponseAuthentication to no; GSSAPIAuthentication to yes, and
GSSAPICleanupCredentials to yes.

However without these settings, the system is still asks for a password, so
I do not understand why changing the method of taking a password changes the
Authentication Process.

Is this a bug?

On Mon, Jan 24, 2011 at 3:59 PM, Andrew Wells <[email protected]> wrote:

>
>
> ---------- 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

Reply via email to