Hi,
We are using jsch to implment a SFTP client, and it works well, but I got a
question here.
In Sun solaris os, client could use command sftp (a tool of openssh) to log
on remote server, and this manual way will be impacted by SSH config file
"/home/username/.ssh/config". If setting "StrictHostKeyChecking yes" in that
file, then sftp command will check whether remote host's key exists in local
"known_hosts" firstly, if not, SFTP log on will fail.
I did a test to check whether JSCH program will be impacted by that SSH
config file, and the result is no. So my question is:
(1) Is it possible that JSCH program could be impacted by that SSH config
file, if I set some options in JSCH ?
(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" ?
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?
Thanks a lot.
> Regards,
> -----------------------------------------------------------------------
> Chen Xiaolei ( 陈小磊 )
> oambase-wtk Team
> Telephone: +86 10 8477 7636
> Mail: [email protected]
> -----------------------------------------------------------------------
>
------------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/jsch-users