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="xxx.com"
           username="root"
           password="matbeers"
           command="ls" />
   </target>
</project>

From which I get the following console output:

E:\swd\devt\eclipseWkspce\Sysadmin\tomcat\ant\ssh-stuff>ant
Buildfile: build.xml

sshtry:
 [sshexec] Connecting to xxx.com:22

BUILD FAILED
E:\swd\devt\eclipseWkspce\Sysadmin\tomcat\ant\ssh-stuff\build.xml:9: com.jcraft.jsch.JSchException: reject HostKey

Total time: 3 seconds
E:\swd\devt\eclipseWkspce\Sysadmin\tomcat\ant\ssh-stuff>

The host xxx.com (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.

Questions
1. What does reject HostKey mean ?
2. Might putty and sshexec/jsch be in conflict, occupying the same workstation? 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.

Bill.

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

Reply via email to