Anderson, Rob (Global Trade) wrote:
Usually this error is caused when you have not specified either
trust="true" or knownhosts="something". You have set trust="true"
though...I'm not sure what is causing the problem.


Has the host changed its key recently? That may trigger something; it certainly does on command line ssh


What version of Ant? What version of jsch? Can you ssh into the host
with an ssh client? What version is the ssh server? OpenSSH or other?

Also, produce some output with -verbose and sent it.

-Rob Anderson
-----Original Message-----
From: Shankar S [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 05, 2007 12:52 AM
To: Ant Users List
Subject: sshexec

I have got the sshexec task in this format:

<sshexec host="xxx" username="xxx" password="xxx" command="./xx.sh"
trust="true" />

Ant throws up saying:

com.jcraft.jsch.JSchException: reject HostKey: xxx

Any help on this is much appreciated.

-Shanki



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



--
Steve Loughran                  http://www.1060.org/blogxter/publish/5
Author: Ant in Action           http://antbook.org/

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to