Folks,
I am using NET:SFTP module for transferring files.
But if I press <ENTER> key during SFTP work my scripts
died with error message:
Connection closed at <filename> line <line>
Can somebody help me? Why this happened?
Here is the debug log:
arkh-linux-ibm.localdomain: Reading configuration data
/home/nortel/.ssh/config
arkh-linux-ibm.localdomain: Reading configuration data
/etc/ssh_config
arkh-linux-ibm.localdomain: Connecting to 47.11.67.30,
port 22.
arkh-linux-ibm.localdomain: Remote version string:
SSH-1.99-OpenSSH_3.9p1
arkh-linux-ibm.localdomain: Remote protocol version 1.99,
remote software version OpenSSH_3.9p1
arkh-linux-ibm.localdomain: Net::SSH::Perl Version 1.30,
protocol version 2.0.
arkh-linux-ibm.localdomain: No compat match: OpenSSH_3.9p1.
arkh-linux-ibm.localdomain: Connection established.
arkh-linux-ibm.localdomain: Sent key-exchange init
(KEXINIT), wait response.
arkh-linux-ibm.localdomain: Algorithms, c->s: 3des-cbc
hmac-sha1 none
arkh-linux-ibm.localdomain: Algorithms, s->c: 3des-cbc
hmac-sha1 none
arkh-linux-ibm.localdomain: Entering Diffie-Hellman Group
1 key exchange.
arkh-linux-ibm.localdomain: Sent DH public key, waiting
for reply.
arkh-linux-ibm.localdomain: Received host key, type 'ssh-dss'.
arkh-linux-ibm.localdomain: Host '47.11.67.30' is known
and matches the host key.
arkh-linux-ibm.localdomain: Computing shared secret key.
arkh-linux-ibm.localdomain: Verifying server signature.
arkh-linux-ibm.localdomain: Waiting for NEWKEYS message.
arkh-linux-ibm.localdomain: Enabling incoming
encryption/MAC/compression.
arkh-linux-ibm.localdomain: Send NEWKEYS, enable outgoing
encryption/MAC/compression.
arkh-linux-ibm.localdomain: Sending request for
user-authentication service.
arkh-linux-ibm.localdomain: Service accepted: ssh-userauth.
arkh-linux-ibm.localdomain: Trying empty
user-authentication request.
arkh-linux-ibm.localdomain: Authentication methods that
can continue: publickey,gssapi-with-mic,password.
arkh-linux-ibm.localdomain: Next method to try is publickey.
arkh-linux-ibm.localdomain: Next method to try is password.
arkh-linux-ibm.localdomain: Trying password authentication.
arkh-linux-ibm.localdomain: Login completed, opening dummy
shell channel.
arkh-linux-ibm.localdomain: channel 0: new [client-session]
arkh-linux-ibm.localdomain: Requesting channel_open for
channel 0.
arkh-linux-ibm.localdomain: channel 0: open confirm
rwindow 0 rmax 32768
arkh-linux-ibm.localdomain: Got channel open confirmation,
requesting shell.
arkh-linux-ibm.localdomain: Requesting service shell on
channel 0.
arkh-linux-ibm.localdomain: channel 1: new [client-session]
arkh-linux-ibm.localdomain: Requesting channel_open for
channel 1.
arkh-linux-ibm.localdomain: Sending subsystem: sftp
arkh-linux-ibm.localdomain: Requesting service subsystem
on channel 1.
arkh-linux-ibm.localdomain: channel 1: open confirm
rwindow 0 rmax 32768
arkh-linux-ibm.localdomain: sftp: Sending SSH2_FXP_INIT
arkh-linux-ibm.localdomain: sftp: Remote version: 3
arkh-linux-ibm.localdomain: sftp: Sent message T:17 I:0
arkh-linux-ibm.localdomain: channel 1: rcvd eof
arkh-linux-ibm.localdomain: channel 1: output open -> drain
arkh-linux-ibm.localdomain: channel 1: obuf empty
arkh-linux-ibm.localdomain: channel 1: output drain -> closed
arkh-linux-ibm.localdomain: channel 1: close_write
arkh-linux-ibm.localdomain: !!!type=98
arkh-linux-ibm.localdomain: !!!type=97
arkh-linux-ibm.localdomain: channel 1: rcvd close
arkh-linux-ibm.localdomain: channel 1: input open -> closed
arkh-linux-ibm.localdomain: channel 1: close_read
arkh-linux-ibm.localdomain: channel 1: send close
arkh-linux-ibm.localdomain: channel 1: full closed
It looks like EOF received but WHY?
Thank you in advance.
Simeon
|