>> verify that the sftp server is configured in the ssh servers >> /etc/ssh/sshd_config file. There should be a line resembling the line below:
>> Subsystem sftp /usr/lib/openssh/sftp-server Hi, I have done for compiling and executing my program in Sun Solaris by adding Ramdom seed. For the AIX 4.1/5.1 I have always 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 And I do the test by connection from my SUN machine and AIX machine to the same SSH Server. I am sure that SSH server works correctly. Following is the log of my program and my SSH Server. If you have any idea, it will be appreciated. Log of my program: [libssh2] Transport: Looking for packet of type: 51 [libssh2] Transport: AVD - Looking for packet in session of type: 51 [libssh2] Transport: AVD - Found packet type 51 with session of data: 3 [libssh2] Userauth: Permitted auth methods: publickey,password,keyboard-interactive * AVD - User authentication list : 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 + Log of 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, ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ libssh2-devel mailing list libssh2-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libssh2-devel