Hi, +-From: "CHEN Xiaolei A" <xiaolei.a.c...@alcatel-sbell.com.cn> -- |_Date: Thu, 24 Feb 2011 15:55:52 +0800 _________________________ | | (1) Is it possible that JSCH program could be impacted by that SSH = |config file, if I set some options in JSCH ?
JSch will not refer to the SSH config file. | (2) As far as I know, JSCH get a interface: = |com.jcraft.jsch.Session.setConfig("StrictHostKeyChecking", "XXX"). If I |use this interface, and set "StrictHostKeyChecking" to "yes", then will |jsch check "/home/username/.ssh/known_hosts" ? You need to explicitly invoke JSch jsch=new JSch(); jsch.setKnownHosts("/home/username/.ssh/known_hosts"); | Another question: | (3) As we know, in that config file "/home/username/.ssh/config", |besides "StrictHostKeyChecking", we can also set many "IdentityFile |XXXXXX" items to specify additional key file for SSH authentication. if |one key failed, another will be tried. So in JSCH, is there any |interface to implement same function? jsch.addIdentity("/home/username/.ssh/id_dsa"); jsch.addIdentity("/home/username/.ssh/id_rsa"); Sincerely, -- Atsuhiko Yamanaka JCraft,Inc. 1-14-20 HONCHO AOBA-KU, SENDAI, MIYAGI 980-0014 Japan. Tel +81-22-723-2150 +1-415-578-3454 Skype callto://jcraft/ Twitter: http://twitter.com/ymnk ------------------------------------------------------------------------------ Free Software Download: Index, Search & Analyze Logs and other IT data in Real-Time with Splunk. Collect, index and harness all the fast moving IT data generated by your applications, servers and devices whether physical, virtual or in the cloud. Deliver compliance at lower cost and gain new business insights. http://p.sf.net/sfu/splunk-dev2dev _______________________________________________ JSch-users mailing list JSch-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jsch-users