| Problem with sshexec task: reject HostKey | Problem with sshexec task: reject HostKey 2005-06-01 - By Anderson, Rob (Global Trade)
You can also set knownhosts=/path/to/your/knownhosts/file.
-Rob A
> -----Original Message----- > From: j&h systems [mailto:jhsystems@(protected)] > Sent: Wednesday, June 01, 2005 10:32 AM > To: Ant Users List > Subject: Re: Problem with sshexec task: reject HostKey > > > Hi, > > Try setting trust="true" like the following: > > <sshexec host="xxx.com" username="root" password="matbeers" > trust="true"> > </sshexec> > > 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. > > Cheers, > > Jian > > On 7/2/05, Bill Winspur <bwinspur@(protected)> 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="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: user-unsubscribe@(protected) > > For additional commands, e-mail: user-help@(protected) > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@(protected) > For additional commands, e-mail: user-help@(protected) > > >
--------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@(protected) For additional commands, e-mail: user-help@(protected)
|
|
 |