ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 23987] - scp task doesn't complain if remote directory is not specified
Date Fri, 24 Oct 2003 02:21:18 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23987>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23987

scp task doesn't complain if remote directory is not specified





------- Additional Comments From Edwin_STEELE@rta.nsw.gov.au  2003-10-24 02:21 -------
How odd that we get different results.
It works fine when I use dot as the remote directory i.e.
<target name="scptest">
    <scp file="/etc/sysctl.conf" todir="user@remotemachine:." password="pwd"/>
</target>

The problem also happens regardless of whether I use a keyfile or password auth.

I have a suspicion that this behaviour is being triggered by a problem in jsch.
I've been looking at the logging produced by sshd with a LOGLEVEL of DEBUG3 and
it appears that sshd doesn't always get an eof and when using the target above,
sshd gets and eof but doesn't close the stream that it's reading from in a nice
manner. FWIW, openssh causes sshd to do everything "normally"

I've posted to the jsch-users list and hope to get some answers. The post isn't
archived just yet, but you should be able to find it eventually at:
http://sourceforge.net/mailarchive/forum.php?forum_id=12628
under a thread "puzzling rcvd and close_ messages"

Either way, Stefan's suggestion to make "." the default target directory solves
this issue, regardless of whether it's ant or jsch

Robert, the known_hosts warning has been fixed in beta2, so I'm not getting it
anymore. Thanks.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message