You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Sam Hamilton <sh...@hotmail.com> on 2008/04/22 17:14:25 UTC
SCP Task - No response from server
Hi,
Up until now, I have been manually copying over my files that have been
checked out of subversion by ANT on Windows, to an AIX server. I've decided
to try to implement ANT so it does this copy for me. I have add the below
lines of code:
<scp todir="userName:pwd@IPAddress:/home/user">
<fileset dir="filetoFTP"/>
</scp>
But when i run my ANT script, i have the error message:
265: No response from server
I can ping this IP address and previously I had been using WinSCP to connect
using the same IP address without any problems.
I am using ANT 1.6 and jsch-0.1.37.jar.
Am I missing something obvious here like a missing flag in my SCP task?
--
View this message in context: http://www.nabble.com/SCP-Task---No-response-from-server-tp16824711p16824711.html
Sent from the Ant - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
Re: SCP Task - No response from server
Posted by glenn opdycke-hansen <gl...@gmail.com>.
you might try something like the following:
<scp todir="${u}:${pw}@${host}:${build.dir}"
trust="true" verbose="true">
<fileset dir="${src.dir}">
<include name="${src.file}"/>
</fileset>
</scp>
trust is important
verbose will give you more details.
--glenn
On Tue, Apr 22, 2008 at 10:20 AM, Steve Loughran <st...@apache.org> wrote:
> Sam Hamilton wrote:
>
> > Hi,
> >
> > Up until now, I have been manually copying over my files that have been
> > checked out of subversion by ANT on Windows, to an AIX server. I've
> decided
> > to try to implement ANT so it does this copy for me. I have add the below
> > lines of code:
> >
> > <scp todir="userName:pwd@IPAddress:/home/user">
> > <fileset dir="filetoFTP"/>
> > </scp>
> >
> > But when i run my ANT script, i have the error message:
> > 265: No response from server
> >
> > I can ping this IP address and previously I had been using WinSCP to
> connect
> > using the same IP address without any problems.
> > I am using ANT 1.6 and jsch-0.1.37.jar.
> >
> > Am I missing something obvious here like a missing flag in my SCP task?
> >
>
> Try
> telnet IPAddress 22
> to see if the server is reachable from the client.
>
> --
> 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
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
Re: SCP Task - No response from server
Posted by Steve Loughran <st...@apache.org>.
Sam Hamilton wrote:
> Hi,
>
> Up until now, I have been manually copying over my files that have been
> checked out of subversion by ANT on Windows, to an AIX server. I've decided
> to try to implement ANT so it does this copy for me. I have add the below
> lines of code:
>
> <scp todir="userName:pwd@IPAddress:/home/user">
> <fileset dir="filetoFTP"/>
> </scp>
>
> But when i run my ANT script, i have the error message:
> 265: No response from server
>
> I can ping this IP address and previously I had been using WinSCP to connect
> using the same IP address without any problems.
>
> I am using ANT 1.6 and jsch-0.1.37.jar.
>
> Am I missing something obvious here like a missing flag in my SCP task?
Try
telnet IPAddress 22
to see if the server is reachable from the client.
--
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