ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bill Winspur <>
Subject Re: Problem with sshexec task: reject HostKey
Date Sat, 02 Jul 2005 18:00:25 GMT
Thanks Jian,
setting trust="true" got sshexec working for me,

j&h systems wrote:

>Try setting trust="true" like the following:
><sshexec host="" username="root" password="matbeers" trust="true">
>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.
>On 7/2/05, Bill Winspur <> wrote:
>>I am using the sshexec task in the following build.xml, under XP Pro
>><?xml version="1.0" encoding="UTF-8"?>
>><project default="sshtry" >
>>    <target name="sshtry">
>>        <sshexec
>>            host=""
>>            username="root"
>>            password="matbeers"
>>            command="ls" />
>>    </target>
>> From which I get the following console output:
>>Buildfile: build.xml
>>  [sshexec] Connecting to
>>com.jcraft.jsch.JSchException: reject HostKey
>>Total time: 3 seconds
>>The host (obfuscated) has a working ssh server that I am able to
>>invoke using putty
>>(from the same workstation as the above sshexec attempt), or openssh on
>>my linux
>>workstation. In both cases I'm using the default password
>>authentication, which
>>is what I wanted to do using sshexec.
>>1. What does reject HostKey mean ?
>>2. Might putty and sshexec/jsch be in conflict, occupying the same
>>3. Are there any preparatory configuration steps for use of sshexec that
>>I have missed.
>>    It took me a while to figure out that the jsch.jar is not included
>>in the ant-1.6.2 dist,
>>    perhaps there is something else I should have set up.
>>To unsubscribe, e-mail:
>>For additional commands, e-mail:
>To unsubscribe, e-mail:
>For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message