[Ssh-sftp-perl-users] Help needed: Connection drops...
Brought to you by:
dbrobins
From: CG <cg...@ya...> - 2005-02-16 16:06:52
|
I'm having problems sending and receiving files to and from a server running the commercial WinSSHD when I use Net::SFTP ... I can transfer the files using OpenSSH's sftp client, though. I printed out the debug log, but everything looks great until the end when it drops. It never gets to the end of the file, even though it says that it received an eof. After the drop, the $sftp connection is dead for the remainder of the script. Here's the log... server: Reading configuration data /usr/local/appdir/.ssh/config server: Reading configuration data /etc/ssh_config server: Connecting to XXX.XXX.XXX.XXX, port 22. server: Remote protocol version 2.0, remote software version 1.43 sshlib: WinSSHD 3.28d server: Net::SSH::Perl Version 1.27, protocol version 2.0. server: No compat match: 1.43 sshlib: WinSSHD 3.28d server: Connection established. server: Sent key-exchange init (KEXINIT), wait response. server: Algorithms, c->s: 3des-cbc hmac-sha1 none server: Algorithms, s->c: 3des-cbc hmac-sha1 none server: Entering Diffie-Hellman Group 1 key exchange. server: Sent DH public key, waiting for reply. server: Received host key, type 'ssh-dss'. server: Host 'XXX.XXX.XXX.XXX' is known and matches the host key. server: Computing shared secret key. server: Verifying server signature. server: Waiting for NEWKEYS message. server: Enabling incoming encryption/MAC/compression. server: Send NEWKEYS, enable outgoing encryption/MAC/compression. server: Sending request for user-authentication service. server: Service accepted: ssh-userauth. server: Trying empty user-authentication request. server: Authentication methods that can continue: publickey,password. server: Next method to try is publickey. server: Trying pubkey authentication with key file '/usr/local/appdir/.ssh/id_dsa' server: Authentication methods that can continue: publickey,password. server: Next method to try is publickey. server: Next method to try is password. server: Trying password authentication. server: Login completed, opening dummy shell channel. server: channel 0: new [client-session] server: Requesting channel_open for channel 0. server: channel 0: open confirm rwindow 16384 rmax 16384 server: Got channel open confirmation, requesting shell. server: Requesting service shell on channel 0. server: channel 1: new [client-session] server: Requesting channel_open for channel 1. server: Sending subsystem: sftp server: Requesting service subsystem on channel 1. server: channel 1: open confirm rwindow 16384 rmax 16384 server: sftp: Sending SSH2_FXP_INIT server: sftp: Remote version: 2 server: sftp: Sent message T:16 I:0 server: sftp: Sent message T:11 I:1 server: sftp: Sent message T:11 I:2 server: sftp: Sent message T:12 I:3 server: sftp: Received reply T:104 I:3 server: sftp: Received 9 SSH2_FXP_NAME responses server: sftp: Sent message T:12 I:4 server: sftp: Received reply T:101 I:4 server: sftp: Received SSH2_FXP_STATUS 1 server: sftp: Sent message T:4 I:5 server: sftp: Sent message T:17 I:6 server: sftp: Received stat reply T:105 I:6 server: sftp: Sent SSH2_FXP_OPEN I:7 P:/filename.tar.gz server: sftp: Sent message SSH2_FXP_READ I:8 O:0 server: sftp: Received reply T:103 I:8 server: sftp: In read loop, got 8192 offset 0 server: sftp: Sent message SSH2_FXP_READ I:9 O:8192 server: channel 1: window 15123 sent adjust 17645 server: sftp: Received reply T:103 I:9 server: sftp: In read loop, got 8192 offset 8192 server: sftp: Sent message SSH2_FXP_READ I:10 O:16384 server: sftp: Received reply T:103 I:10 server: sftp: In read loop, got 8192 offset 16384 server: sftp: Sent message SSH2_FXP_READ I:11 O:24576 [removed for brevity...] server: channel 1: window 16358 sent adjust 16410 server: sftp: Received reply T:103 I:213 server: sftp: In read loop, got 8192 offset 1679360 server: sftp: Sent message SSH2_FXP_READ I:214 O:1687552 server: sftp: Received reply T:103 I:214 server: sftp: In read loop, got 8192 offset 1687552 server: sftp: Sent message SSH2_FXP_READ I:215 O:1695744 server: channel 1: window 16358 sent adjust 16410 server: sftp: Received reply T:103 I:215 server: sftp: In read loop, got 8192 offset 1695744 server: sftp: Sent message SSH2_FXP_READ I:216 O:1703936 server: sftp: Received reply T:103 I:216 server: sftp: In read loop, got 8192 offset 1703936 server: sftp: Sent message SSH2_FXP_READ I:217 O:1712128 server: channel 1: window 16358 sent adjust 16410 server: sftp: Received reply T:103 I:217 server: sftp: In read loop, got 8192 offset 1712128 server: sftp: Sent message SSH2_FXP_READ I:218 O:1720320 server: sftp: Received reply T:103 I:218 server: sftp: In read loop, got 8192 offset 1720320 server: sftp: Sent message SSH2_FXP_READ I:219 O:1728512 server: channel 1: window 16358 sent adjust 16410 server: sftp: Received reply T:103 I:219 server: sftp: In read loop, got 8192 offset 1728512 server: sftp: Sent message SSH2_FXP_READ I:220 O:1736704 server: sftp: Received reply T:103 I:220 server: sftp: In read loop, got 6015 offset 1736704 server: sftp: Sent message SSH2_FXP_READ I:221 O:1742719 server: channel 1: rcvd eof server: channel 1: output open -> drain server: channel 1: rcvd close server: channel 1: input open -> closed server: channel 1: close_read server: channel 1: obuf empty server: channel 1: output drain -> closed server: channel 1: close_write server: channel 1: send close server: channel 1: full closed What other information would you need to help troubleshoot this? __________________________________ Do you Yahoo!? Yahoo! Mail - now with 250MB free storage. Learn more. http://info.mail.yahoo.com/mail_250 |