Manning's Countdown to 2014
. Use discount code crdotd14 all month for 50% off every deal.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
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!
Did you see how Paul
cut 87% off of his electric heat bill with 82 watts of micro heaters
subject: Connection is closed by foreign host given by Ant SCP task
FTP Task giving "Connection timed out: connect" Error
Ant scp task giving Error
SCP task in Ant
Problem with "scp" in ANT build file (Urgent please)
possible to have scp task with fileset for files on remote host?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013