ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j&h systems <jhsyst...@gmail.com>
Subject Re: Problem with sshexec task: reject HostKey
Date Wed, 01 Jun 2005 18:38:31 GMT
Right. That is the more "formal way". 

In my application, I am only transferring files within the Intranet
network environment, so, I don't really care about setting up the
knowhosts file. I think setting up trust=true behind the firewall is
good enough for me.

Cheers,

Jian

On 6/1/05, Anderson, Rob (Global Trade) <Rob.Anderson@nike.com> wrote:
> You can also set knownhosts=/path/to/your/knownhosts/file.
> 
> -Rob A
> 
> > -----Original Message-----
> > From: j&h systems [mailto:jhsystems@gmail.com]
> > 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@wynnon.com> 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@ant.apache.org
> > > For additional commands, e-mail: user-help@ant.apache.org
> > >
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> > For additional commands, e-mail: user-help@ant.apache.org
> >
> >
> >
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 
>

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


Mime
View raw message