The error would indicate that there is no ssh server listening on port 22 of the IP address specified. I know you said you tested it with putty and it worked, so that is strange indeed. One thing you can try is to run the sshd in verbose and non-deamon mode on the remote server to see some output as you connect with putty and attempt to connect with Ant. This may reveal the problem.
-Rob Anderson > -----Original Message----- > From: david [mailto:[EMAIL PROTECTED] > Sent: Monday, September 10, 2007 8:29 AM > To: [email protected] > Subject: Ant deployment target works in one build.xml but not > the other > > Hello Ant dev, gurus and users. I have just solved a related > problem in 2 build.xml files through this ML. Now, I have a > problem with one build.xml that I do not have in the other > build.xml. The target is a simple deployment using <scp> and > <sshexec>. The failing build.xml only uses <scp> otherwise > the deployments are similar. The remote IPs (non-routable) > are on the same remote box. One build.xml deployment and one > IP build returns successful. The other IP and build.xml > deployment target fails (error condition follows). Attempts > to run putty and other ssh clients succeed. No remote Linux > logs to report anything of interest. Please advise, David. > > OS: (local) Windows XP, (Remote) 2.6.18-1.2798.fc6 #1 SMP > Mon Oct 16 14:37:32 EDT 2006 i686 i686 i386 GNU/Linux > Ant: 1.7.0 > Java: 1.6.0_02 > > Error condition: > deploy: > [scp] Connecting to :22 > > BUILD FAILED > C:\Documents and Settings\My Documents\dev\build.xml:94: > com.jcraft.jsch.JSchException: java.net.ConnectException: > Connection refused: connect > > <target name="deploy" depends="jar"> > <query name="password.remote" password="true"/> <scp > file="${build.dest}/${componentName}.jar" > > todir="[EMAIL PROTECTED]:${home.remote}/${deploy.remote}" > trust="true" > password="${password.remote}" > verbose="true" > sftp="true" /> > <description>Main deployment target to both remote and > production servers</description> </target> > > --------------------------------------------------------------------- > 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]
