Christopher Styles wrote:
Hi,
I'm trying to run a target from my Windows 2003 Server build box to connect
to a solaris server to execute a command, but I'm getting "
com.jcraft.jsch.JSchException: Auth fail"... Does anyone know how to resolve
this issue...??
<target name="stop-web-server">
<sshexec host="${hostname}"
username="${username}"
password="${password}"
trust="true"
command="/local/sys/was/profiles/App01/bin/stopServer.sh server1 -user
Admin -password password"/>
</target>
this generally means it didnt authorise you. Password or known hosts are
often the problem. Can you connect from Putty on the box?
--
Steve Loughran http://www.1060.org/blogxter/publish/5
Author: Ant in Action http://antbook.org/
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]