ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anderson, Rob (Global Trade)" <Rob.Ander...@nike.com>
Subject RE: sshexec
Date Wed, 05 Sep 2007 22:28:29 GMT
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:shanki@gmail.com] 
> 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: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message