Cool. Thanks.

-----Original Message-----
From: Matt Benson [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 11, 2005 4:50 PM
To: Ant Users List
Subject: RE: Sshexec: Auth fail


Actually... that was on ant-dev, the supplier was one
of the (AFAIU) key guys at JCraft, the writers of the
jsch package that implements the SSH tasks, and it has
already been applied to Ant's HEAD.

Thanks,
Matt

--- "Dick, Brian E." <[EMAIL PROTECTED]> wrote:

> The patch worked. Here's the URL to the patch. This
> should be added to
> the code base.
> 
>
http://marc.theaimsgroup.com/?l=ant-dev&m=111959408515300&w=2
> 
> -----Original Message-----
> From: Dick, Brian E. 
> Sent: Tuesday, October 11, 2005 2:15 PM
> To: Ant Users List
> Subject: RE: Sshexec: Auth fail
> 
> 
> It works from cygwin. Here's the output for ssh -v.
> 
> I found a post in the jsch forum from an ant user
> that had to patch the
> SSHUserInfo class to support the
> UIKeyboardInteractive interface. I'm
> trying his patch. I'll let you know how it goes.
> 
> OpenSSH_3.8.1p1, OpenSSL 0.9.7d 17 Mar 2004
> debug1: Connecting to foohost [x.x.x.x] port 22.
> debug1: Connection established.
> debug1: identity file
> /cygdrive/c/home/user/.ssh/identity type -1
> debug1: identity file
> /cygdrive/c/home/user/.ssh/id_rsa type -1
> debug1: identity file
> /cygdrive/c/home/user/.ssh/id_dsa type -1
> debug1: Remote protocol version 2.0, remote software
> version
> OpenSSH_3.7.1p2
> debug1: match: OpenSSH_3.7.1p2 pat OpenSSH*
> debug1: Enabling compatibility mode for protocol 2.0
> debug1: Local version string SSH-2.0-OpenSSH_3.8.1p1
> debug1: SSH2_MSG_KEXINIT sent
> debug1: SSH2_MSG_KEXINIT received
> debug1: kex: server->client aes128-cbc hmac-md5 none
> debug1: kex: client->server aes128-cbc hmac-md5 none
> debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192)
> sent
> debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
> debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
> debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
> debug1: Host 'foohost' is known and matches the RSA
> host key.
> debug1: Found key in
> /cygdrive/c/home/user/.ssh/known_hosts:1
> debug1: ssh_rsa_verify: signature correct
> debug1: SSH2_MSG_NEWKEYS sent
> debug1: expecting SSH2_MSG_NEWKEYS
> debug1: SSH2_MSG_NEWKEYS received
> debug1: SSH2_MSG_SERVICE_REQUEST sent
> debug1: SSH2_MSG_SERVICE_ACCEPT received
> 
>  
>
************************************************************************
> *
>   * WARNING: This system is restricted to authorized
> users for
> legitimate *
>   * business purposes and is subject to audit. The
> unauthorized access,
> *
>   * use, or modification of this system or of the
> data contained therein
> *
>   * or in transit to/from it is a criminal violation
> of Federal and
> *
>   * state laws
> *
>  
>
************************************************************************
> *
> debug1: Authentications that can continue:
> publickey,keyboard-interactive
> debug1: Next authentication method: publickey
> debug1: Trying private key:
> /cygdrive/c/home/user/.ssh/identity
> debug1: Trying private key:
> /cygdrive/c/home/user/.ssh/id_rsa
> debug1: Trying private key:
> /cygdrive/c/home/user/.ssh/id_dsa
> debug1: Next authentication method:
> keyboard-interactive
> Password:
> debug1: Authentication succeeded
> (keyboard-interactive).
> debug1: channel 0: new [client-session]
> debug1: Entering interactive session.
> Last login: Tue Oct 11 13:44:45 2005 from fooclient.
> 
>  
>
************************************************************************
> *
>   * WARNING: This system is restricted to authorized
> users for
> legitimate *
>   * business purposes and is subject to audit. The
> unauthorized access,
> *
>   * use, or modification of this system or of the
> data contained therein
> *
>   * or in transit to/from it is a criminal violation
> of Federal and
> *
>   * state laws
> *
>  
>
************************************************************************
> *
> foohost% logout
> debug1: client_input_channel_req: channel 0 rtype
> exit-status reply 0
> debug1: channel 0: free: client-session, nchannels 1
> Connection to foohost closed.
> debug1: Transferred: stdin 0, stdout 0, stderr 33
> bytes in 11.9 seconds
> debug1: Bytes per second: stdin 0.0, stdout 0.0,
> stderr 2.8
> debug1: Exit status 0
> 
> 
> 
> -----Original Message-----
> From: Anderson, Rob (Global Trade)
> [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, October 11, 2005 1:59 PM
> To: Ant Users List
> Subject: RE: Sshexec: Auth fail
> 
> 
>  You will probably want to get ssh working from
> cygwin before attempting
> to connect via Ant. The error suggests you are using
> the wrong username
> or password. Perhaps the password expired? What
> happens on the command
> line in cygwin?
> 
> -Rob A
> 
> > -----Original Message-----
> > From: Dick, Brian E. [mailto:[EMAIL PROTECTED] 
> > Sent: Tuesday, October 11, 2005 8:25 AM
> > To: Ant Users List
> > Subject: RE: Sshexec: Auth fail
> > 
> > Can I get some help for the problem below?
> > 
> > -----Original Message-----
> > From: Dick, Brian E. 
> > Sent: Friday, October 07, 2005 11:24 AM
> > To: Ant Users List
> > Subject: Sshexec: Auth fail
> > 
> > 
> > Any hints on how to debug the sshexec task "auth
> fail"? It 
> > was working a couple of weeks ago, but it is now
> failing for 
> > some unknown reason. Of course, "nothing has
> changed" on my 
> > machine. I can connect using ssh from cygwin.
> > 
> > Thanks
> > 
> > 
> > Here's a short test project I'm using to debug.
> >
>
----------------------------------------------------------------------
> > <?xml version="1.0" ?>
> > 
> > <project name="build" basedir=".."
> default="chkssh">
> >       <sshexec host="${host}"
> >                username="${username}"
> >                password="${password}"
> >                command="ls -l"
> >                trust="yes"/>
> >    </target>
> > </project>
> >
>
----------------------------------------------------------------------
> > 
> > Here's the debug output from the above.
> >
>
----------------------------------------------------------------------
> > Apache Ant version 1.7alpha compiled on December 1
> 2004
> > Buildfile: chkssh.xml
> > Adding reference: ant.PropertyHelper
> > Detected Java version: 1.4 in:
> C:\j2sdk1.4.2_05\jre Detected 
> > OS: Windows XP Adding reference:
> ant.ComponentHelper Setting 
> > ro project property: ant.version -> Apache Ant
> version 
> 
=== message truncated ===



        
                
__________________________________ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com

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

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

Reply via email to