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 [EMAIL PROTECTED]  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="[EMAIL PROTECTED]:." 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to