A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Node.js in Action
this week in the
Ant, Maven and Other Build Tools
Connection is closed by foreign host given by Ant SCP task
Joined: Nov 07, 2007
May 20, 2009 04:00:18
I am using
build file and target as follows:
<scp file="sample.dll" todir="user@host:/shared" port="21" trust="true" password="password" verbose="true"/>
When i call the "copyFileToRemote" target ,It is giving following error:
[scp] Connecting to host:21
connection is closed by foreign host
I have tried both ports 21 and 22 also. The remote machine having ftp server and it up and running with read/write permissions.
Could you please guide me to resolve this problem.
Joined: Jun 24, 2003
May 20, 2009 05:10:21
SCP != FTP, it needs to have scp enabled.
Cheers, Martijn -
The Well-Grounded Java Developer book!
subject: Connection is closed by foreign host given by Ant SCP task
Problem with "scp" in ANT build file (Urgent please)
SCP task in Ant
possible to have scp task with fileset for files on remote host?
Ant scp task giving Error
FTP Task giving "Connection timed out: connect" Error
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014