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. Couple questions:

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]

Reply via email to