readthefuckingmanual.net

[SOLVED] com.jcraft.jsch.JSchException: reject HostKey

Error added: 2007-05-26T17:21:43Z

2 people waiting for the answer...

16 answers found.

Answer 1486 (100.0% helpful)

good one bro! :) Thanks.
Permalink

Answer 1423 (95.0% helpful)

thanks alot buddy. setting trust=\"true\" resolves this problem.
Great help
Raul T. Honeywell International
Permalink

Answer 1220 (80.0% helpful)

worked for me too!
Permalink

Answer 1120 (75.0% helpful)

Great, i was stuck too.  it worked first try
Permalink

Answer 1384 (75.0% helpful)

Above Helps thanks  a ton
Permalink

Answer 741 (88.888885% helpful)

> Hi,
> 
> Try setting trust=\"true\" like the following:
> 
> <sshexec host=\"xxx.com\" username=\"root\" password=\"matbeers\" trust=\"true\">
> </sshexec>
> 
> I think if you don\'t set trust to true, the host key (which is on the
> server) will be rejected by your ant ssh task.
> 
> Cheers,
> 
> Jian
Permalink

Answer 1554 (66.666664% helpful)

works as described. Thanks
Permalink

Answer 1889 (66.666664% helpful)

it worked for me. thank you
Permalink

Answer 1881 (50.0% helpful)

you are sooooo awesome
Permalink

Answer 756 (0.0% helpful)

solution above worked. thanks.
Permalink

Answer 827 (0.0% helpful)

this solution worked Thanks a lot
Permalink

Answer 1610 (0.0% helpful)

Worked for me...
Permalink

Answer 1635 (0.0% helpful)

Super works
Permalink

Answer 1158 (0.0% helpful)

the solution worked for me as expected...thanks a lot \"jian\".

Regards
Mani
Permalink

Answer 1336 (0.0% helpful)

thanks, worked well....
Permalink

Answer 1455 (0.0% helpful)

it is working. thank you
Permalink

Add an answer/solution

If you know the answer, please add your own solution below.
If you don't know, but find out later, please come back and share your answer - there will be other people struggling with this too.


Please enter 61948 here

If you want to be notified via email when this is solved, enter your email address here: