jsch-users

[Prev] Thread [Next]  |  [Prev] Date [Next]

Re: [JSch-users] JSch configuration COHEN, STEVEN M (ATTSI) Fri May 22 09:00:22 2009

Thanks.  Yeah, I set it to "off" and that seemed to work, only leading me to
the next roadblock.
 
When using the sftp.java sample that is included I was able to connect to my
host without any difficulty.  Host uses simple password authentication, no
keys.  I'm now writing a non-interactive client that just connects and I'm
getting an Auth cancel exception.  I am supplying the correct username and
password.  What other configs do I need to change to achieve the connection?

  _____  

From: Macias, Horaci (Horaci) [mailto:[EMAIL PROTECTED] 
Sent: Friday, May 22, 2009 9:47 AM
To: COHEN, STEVEN M (ATTSI); [EMAIL PROTECTED]
Subject: RE: [JSch-users] JSch configuration


Hi Steve,
 
I'm by no means a JSch expert but I had a similar request and I just solved
it by using
session.setConfig("StrictHostKeyChecking", "no");

before your session.connect().

This seems to work for me.

hope this helps,

Horaci


  _____  

From: COHEN, STEVEN M (ATTSI) [mailto:[EMAIL PROTECTED] 
Sent: viernes, 22 de mayo de 2009 16:35
To: [EMAIL PROTECTED]
Subject: [JSch-users] JSch configuration




Looking at the source code, it appears that the JSch configuration is a
simple Hashtable with a large number of keys defined.  I don't find any
documentation listing what may be acceptable values for those keys.

In particular I am interesting in turning off the StrictHostKeyChecking,
which is by default given a value of "ask".  My application wants to simply
accept the key of the (only) sftp host it will be connecting to without any
user interaction needed.

How may this be implemented most easily? 

 

------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, & 
iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian
Group, R/GA, & Big Spaceship. http://www.creativitycat.com 
_______________________________________________
JSch-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jsch-users