ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anderson, Rob (Global Trade)" <Rob.Ander...@nike.com>
Subject RE: sshexec hang
Date Thu, 10 Jun 2004 19:03:06 GMT
Are you able to ssh into the solaris box using that ssh-key outside of Ant? F-secure is a little
different on the remote side as far as files are concerned. Make sure, on the solaris, host
you have...

~/.ssh2
   authorization
   some_ssh_key.pub

The authorization file would look like...

key some_ssh_key.pub

The key will probably need to be converted from the default OpenSSH format to the SECSH Public
Key File Format. You will probably need to do this with F-Secure's ssh-keygen2 program. See
the docs for details, or contact the vendor, after all, that's what you're paying them for.

-Rob A

> -----Original Message-----
> From: mark.russel@pnc.com [mailto:mark.russel@pnc.com]
> Sent: Thursday, June 10, 2004 5:45 AM
> To: user@ant.apache.org
> Subject: sshexec hang
> 
> 
> I am using the sshexec command to run a remote ant job.  I'm 
> running this
> command on a windows xp box to two boxes one a RedHat Linux 
> AS3 server and
> one a Sun Solaris 8 box.
> 
> Version info Linux:
> Remote protocol version 1.99, remote software version OpenSSH_3.6.1p2
> match: OpenSSH_3.6.1p2 pat OpenSSH*
> Enabling compatibility mode for protocol 2.0
> Local version string SSH-2.0-OpenSSH_3.8.1p1
> 
> Version Info Solaris:
> Remote protocol version 1.99, remote software version 2.3.1 
> F-SECURE SSH
> match: 2.3.1 F-SECURE SSH pat 2.3.*
> Enabling compatibility mode for protocol 2.0
> Local version string SSH-2.0-OpenSSH_3.8.1p1
> 
> When I run the command to the Linux box it works fine.  But 
> when I run the
> command to the Sun box I Get the following:
> 
> [echo] ssh using Private Key C:\Documents and 
> Settings\pp08920.PNCNT\My
> Documents\pp08920@ppxpfx56746_openssh
> [sshexec] Connecting to webdev1:22
> 
> then it hangs.
> 
> Has anyone seen this before?  Is there a way to turn more 
> debugging on?
> 
> Here is my ant target:
>       <target name="do-ssh" description="execute an ssh command">
>             <if>
>                   <isset property="mach.password"/>
>                   <then>
>                         <echo message="ssh using Password"/>
>                         <sshexec 
> username="${pnc.build.user.id}" host="
> ${machine}" command="${ssh.command}"
>                                           
> password="${mach.password}" trust
> ="yes"/>
>                   </then>
>                   <else>
>                         <echo message="ssh using Private Key
> ${pnc.build.key.location}"/>
>                         <sshexec 
> username="${pnc.build.user.id}" host="
> ${machine}" command="${ssh.command}"
>                                           keyfile="
> ${pnc.build.key.location}" trust="yes"/>
>                    </else>
>             </if>
>       </target>
> 
> Mark Russell
> PNC
> 412-768-9603
> 
> 
> 
> -----------------------------------------
> The contents of this email are the property of PNC. If it was 
> not addressed to you, you have no legal right to read it. If 
> you think you received it in error, please notify the sender. 
> Do not forward or copy without permission of the sender.
> 
> 
> ---------------------------------------------------------------------
> 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