ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steve Loughran <ste...@apache.org>
Subject Re: sshexec
Date Thu, 06 Sep 2007 13:29:05 GMT
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: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
> 


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

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message