ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steve Loughran <ste...@apache.org>
Subject Re: Can't connect to unix server from windows server...
Date Wed, 30 Jan 2008 17:13:15 GMT
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: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message