Java – any way to disable known host checking using jsch?

I tried to ridicule jsch and SSH tire connection to Java local remote (Solaris) host I usually use putty. Every time I connect to a place for the first time, I will provide a prompt about an unknown host. Then I say yes, it is no longer so, because it stores the known host in the win7 registry But jsch wants a konown_ Hosts file, I don't know what to do I can look into it later, but now I would rather skip this step. Someone knows whether it is feasible and what to do?

thank you

Solution

You have tried the following:

session.setConfig("StrictHostKeyChecking","no");

From this thread

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>