cURL / Mailing Lists / curl-library / Single Mail

curl-library

Executing error of SFTP in AIX Unix 4.3/5.1

From: DAO Anh-Viet <avdao_at_influe.com>
Date: Wed, 21 Mar 2007 09:50:00 +0100

Hi,

When executing the function SFTP of Curl in AIX Unix 4.3/5.1, I have
The error at the stage of SFTP Initialisation.

Checking my configuration file /etc/ssh2/sshd2_config I have the following line:

# Subsystems don't have defaults, so this is needed here (uncommented).
       subsystem-sftp sftp-server
# Also internal sftp-server subsystem can be used.
# subsystem-sftp internal://sftp-server
# subsystem-hello /var/tmp/hello
## Subconfiguration

I have done the same test from other platform (Linux, HP_UX, Sun Solaris) by connecting to the same SSH server, it is OK .

Following is the log of my testing program and my SSH Server.

If you have any idea, it will be appreciated.

1. Log of testing program using Curl:

[libssh2] Transport: Looking for packet of type: 51
[libssh2] Userauth: Permitted auth methods:publickey,password,keyboard-interactive
[libssh2] Userauth: Attempting to login using password authentication [libssh2] Transport: Sending packet type 50, length=54, 32 00 00 00 07
65 64 69
[libssh2] Transport: Sending packet with total length 60 (5 bytes padding)
[libssh2] Transport: Looking for packet of type: 52
[libssh2] Transport: Looking for packet of type: 51
[libssh2] Transport: Looking for packet of type: 60
[libssh2] Transport: Checking for packet: will block
[libssh2] Transport: Blocking read: 16 bytes
[libssh2] Transport: Blocking read: 16 bytes actually read
[libssh2] Transport: Processing packet 12 bytes long (with 10 bytes
padding)
[libssh2] Transport: Blocking read: 20 bytes
[libssh2] Transport: Blocking read: 20 bytes actually read
[libssh2] Transport: Packet type 52 received, length=1
[libssh2] Transport: Looking for packet of type: 52
[libssh2] Userauth: Password authentication successful
[libssh2] SFTP Subsystem: Initializing SFTP subsystem
[libssh2] Connection: Allocated new channel ID#0
[libssh2] Connection: Opening Channel - win 65536 pack 16384
[libssh2] Transport: Sending packet type 90, length=24, 5A 00 00 00 07
73 65 73
[libssh2] Transport: Sending packet with total length 44 (19 bytes
padding)
[libssh2] Transport: Looking for packet of type: 91
[libssh2] Transport: Looking for packet of type: 92
[libssh2] Transport: Checking for packet: will block
[libssh2] Transport: Blocking read: 16 bytes
[libssh2] Transport: Blocking read: 16 bytes actually read
[libssh2] Transport: Processing packet 28 bytes long (with 10 bytes
padding)
[libssh2] Transport: Blocking read: 16 bytes
[libssh2] Transport: Blocking read: 16 bytes actually read
[libssh2] Transport: Blocking read: 20 bytes
[libssh2] Transport: Blocking read: 20 bytes actually read
[libssh2] Transport: Packet type 91 received, length=17
[libssh2] Transport: Looking for packet of type: 91
[libssh2] Connection: Connection Established - ID: 0/0 win: 0/65536
pack: 32768/16384
[libssh2] Connection: starting request("sftp") on channel 0/0, message=sftp [libssh2] Transport: Sending packet type 98, length=24, 62 00 00 00 00 00 00 00
[libssh2] Transport: Sending packet with total length 44 (19 bytes
padding)
[libssh2] Transport: Looking for packet of type: 99
[libssh2] Transport: Looking for packet of type: 100
[libssh2] Transport: Checking for packet: will block
[libssh2] Transport: Blocking read: 16 bytes
[libssh2] Transport: Blocking read: 16 bytes actually read
[libssh2] Transport: Processing packet 12 bytes long (with 6 bytes
padding)
[libssh2] Transport: Blocking read: 20 bytes
[libssh2] Transport: Blocking read: 20 bytes actually read
[libssh2] Transport: Packet type 100 received, length=5
[libssh2] Transport: Looking for packet of type: 99
[libssh2] Transport: Looking for packet of type: 100
[libssh2] Failure Event: -22 - Unable to complete request for channel-process-startup
[libssh2] Failure Event: -21 - Unable to request SFTP subsystem
[libssh2] Connection: Freeing channel 0/0 resources
[libssh2] Connection: Closing channel 0/0
[libssh2] Transport: Sending packet type 97, length=5, 61 00 00 00 00
[libssh2] Transport: Sending packet with total length 12 (6 bytes
padding)
[libssh2] Transport: Checking for packet: will not block
[libssh2] Transport: Looking for packet of type: 94
[libssh2] Transport: Checking for packet: will not block
[libssh2] Transport: Looking for packet of type: 95
* Failure initialising sftp session

2. Log from SSH Server

debug1: KEX done
debug1: userauth-request for user edimanu service ssh-connection method none
debug1: attempt 0 failures 0
debug2: input_userauth_request: setting up authctxt for edimanu
debug2: input_userauth_request: try method none Failed none for edimanu from 192.168.201.59 port 52602 ssh2
debug1: userauth-request for user edimanu service ssh-connection method password
debug1: attempt 1 failures 1
debug2: input_userauth_request: try method password Accepted password for edimanu from 192.168.201.59 port 52602 ssh2
debug3: Trying to reverse map address 192.168.201.59.
Could not reverse map address 192.168.201.59.
debug1: Entering interactive session for SSH2.
debug1: fd 7 setting O_NONBLOCK
debug1: fd 8 setting O_NONBLOCK
debug1: server_init_dispatch_20
debug1: server_input_channel_open: ctype session rchan 0 win 65536 max
16384
debug1: input_session_request
debug1: channel 0: new [server-session]
debug1: session_new: init
debug1: session_new: session 0
debug1: session_open: channel 0
debug1: session_open: session 0: link with channel 0
debug1: server_input_channel_open: confirm session
debug1: server_input_channel_req: channel 0 request "sftp" reply 255
debug1: session_by_channel: session 0 channel 0
debug1: session_input_channel_req: session 0 req "sftp"
debug1: channel 0: rcvd close
debug1: channel 0: output open -> closed
debug1: channel 0: input open -> closed
debug1: channel 0: almost dead
debug1: channel 0: gc: notify user
debug1: session_by_channel: session 0 channel 0
debug1: session_close_by_channel: channel 0 child 0
debug1: session_close: session 0 pid 0
debug1: channel 0: gc: user detached
debug1: channel 0: send close
debug1: channel 0: is dead
debug1: channel 0: garbage collecting
debug1: channel_free: channel 0: server-session, nchannels 1
debug3: channel_free: status: The following connections are open:
  #0 server-session (t10 r0 i3/0 o3/0 fd -1/-1)

Br,

Dao Anh-Viet
Développement
INFLUE ILLICOM
Email: avdao_at_influe.com
Received on 2007-03-21