jcraft looks for known_hosts in $HOME/.ssh I added the host to that file and it worked.
You can also try: java.util.Properties config = new java.util.Properties(); config.put("StrictHostKeyChecking", "no");
session.setConfig(config);
Thx man, it was exactly what i was looking for :)
Hi guys... I had same problem, did it and works... thanks so much deinspanjer
It really works. Thanks a lot!!
I mean the Properties/setConfig solution
Thanks for the solution.
Worked for me, gr8 solution, tx
Thanks for solution,it solve my problem :)
worked for me as well... thanks
Comments
You can also try: java.util.Properties config = new java.util.Properties(); config.put("StrictHostKeyChecking", "no");
session.setConfig(config);
Thx man, it was exactly what i was looking for :)
Hi guys... I had same problem, did it and works... thanks so much deinspanjer
It really works. Thanks a lot!!
I mean the Properties/setConfig solution
Thanks for the solution.
Worked for me, gr8 solution, tx
Thanks for solution,it solve my problem :)
worked for me as well... thanks