• My Errors
  • Login
  • Search
Search again

Error #67978

com.jcraft.jsch.JSchException: UnknownHostKey:

User's solution

This works!
+7 Vote Up

jcraft looks for known_hosts in $HOME/.ssh
I added the host to that file and it worked.

Jan 31, 2008

Comments

You can also try: java.util.Properties config = new java.util.Properties(); config.put("StrictHostKeyChecking", "no");

user70766 Jun 24, 2009

session.setConfig(config);

user70766 Jun 24, 2009

Thx man, it was exactly what i was looking for :)

user80795 Sep 16, 2009

Hi guys... I had same problem, did it and works... thanks so much deinspanjer

user101314 May 21, 2010

It really works. Thanks a lot!!

user107394 Jul 29, 2010

I mean the Properties/setConfig solution

user107394 Jul 29, 2010

Thanks for the solution.

user108752 Aug 25, 2010

Worked for me, gr8 solution, tx

user112786 Nov 30, 2010

Thanks for solution,it solve my problem :)

user113484 Dec 27, 2010

worked for me as well... thanks

user141030 Jan 25, 2012