www.libssh2.org | Daily snapshots | Mailing list archive | Docs | Examples | github

Archive Index This month's Index

Subject: ProFTPD SFTP connection problem

ProFTPD SFTP connection problem

From: Michael Krietemeyer <michael.krietemeyer_at_gmail.com>
Date: Mon, 1 Oct 2012 13:58:28 +0200

Hello,

I am using a libssh2 based client to connect to a ProFTPD with mod_sftp
(0.9.7). I have teseted it with different versions of the library (1.3.0
and 1.4.2). I alwasy got the following errors (at the end of this post).

If I use a very old libssh2 implementation (0.11) the connection works
well.

Can someone help me?

Thanks in advance
Michael

Log messages:
Aug 20 09:09:35 [23657] <ssh2:3>: unable to use 'none' cipher: Must be
explicitly requested via SFTPCiphers
Aug 20 09:09:35 [23657] <ssh2:3>: unable to use 'none' digest: Must be
explicitly requested via SFTPDigests
Aug 20 09:09:35 [23657] <ssh2:9>: sending KEXINIT message to client
Aug 20 09:09:35 [23657] <ssh2:3>: sent SSH_MSG_KEXINIT (20) packet
Aug 20 09:09:35 [23657] <ssh2:5>: handling connection from SSH2 client
'libssh2_1.4.2 PHP'
Aug 20 09:09:35 [23657] <ssh2:18>: checking client version 'libssh2_1.4.2
PHP' against regex
'^OpenSSH-2\.0.*|^OpenSSH-2\.1.*|^OpenSSH_2\.1.*|^OpenSSH_2\.2.*|^OpenSSH_2\.3\.0.*'
Aug 20 09:09:35 [23657] <ssh2:18>: client version 'libssh2_1.4.2 PHP' did
not match regex
'^OpenSSH-2\.0.*|^OpenSSH-2\.1.*|^OpenSSH_2\.1.*|^OpenSSH_2\.2.*|^OpenSSH_2\.3\.0.*'
Aug 20 09:09:35 [23657] <ssh2:18>: checking client version 'libssh2_1.4.2
PHP' against regex
'^OpenSSH_2\.3\..*|^OpenSSH_2\.5\.0p1.*|^OpenSSH_2\.5\.1p1.*|^OpenSSH_2\.5\.0.*|^OpenSSH_2\.5\.1.*|^OpenSSH_2\.5\.2.*|^OpenSSH_2\.5\.3.*'
Aug 20 09:09:35 [23657] <ssh2:18>: client version 'libssh2_1.4.2 PHP' did
not match regex
'^OpenSSH_2\.3\..*|^OpenSSH_2\.5\.0p1.*|^OpenSSH_2\.5\.1p1.*|^OpenSSH_2\.5\.0.*|^OpenSSH_2\.5\.1.*|^OpenSSH_2\.5\.2.*|^OpenSSH_2\.5\.3.*'
Aug 20 09:09:35 [23657] <ssh2:18>: checking client version 'libssh2_1.4.2
PHP' against regex '^OpenSSH.*'
Aug 20 09:09:35 [23657] <ssh2:18>: client version 'libssh2_1.4.2 PHP' did
not match regex '^OpenSSH.*'
Aug 20 09:09:35 [23657] <ssh2:18>: checking client version 'libssh2_1.4.2
PHP' against regex '.*MindTerm.*'
Aug 20 09:09:35 [23657] <ssh2:18>: client version 'libssh2_1.4.2 PHP' did
not match regex '.*MindTerm.*'
Aug 20 09:09:35 [23657] <ssh2:18>: checking client version 'libssh2_1.4.2
PHP' against regex '^Sun_SSH_1\.0.*'
Aug 20 09:09:35 [23657] <ssh2:18>: client version 'libssh2_1.4.2 PHP' did
not match regex '^Sun_SSH_1\.0.*'
Aug 20 09:09:35 [23657] <ssh2:18>: checking client version 'libssh2_1.4.2
PHP' against regex '^2\.1\.0.*|^2\.1 .*'
Aug 20 09:09:35 [23657] <ssh2:18>: client version 'libssh2_1.4.2 PHP' did
not match regex '^2\.1\.0.*|^2\.1 .*'
Aug 20 09:09:35 [23657] <ssh2:18>: checking client version 'libssh2_1.4.2
PHP' against regex
'^2\.0\.13.*|^2\.0\.14.*|^2\.0\.15.*|^2\.0\.16.*|^2\.0\.17.*|^2\.0\.18.*|^2\.0\.19.*'
Aug 20 09:09:35 [23657] <ssh2:18>: client version 'libssh2_1.4.2 PHP' did
not match regex
'^2\.0\.13.*|^2\.0\.14.*|^2\.0\.15.*|^2\.0\.16.*|^2\.0\.17.*|^2\.0\.18.*|^2\.0\.19.*'
Aug 20 09:09:35 [23657] <ssh2:18>: checking client version 'libssh2_1.4.2
PHP' against regex '^2\.0\.11.*|^2\.0\.12.*'
Aug 20 09:09:35 [23657] <ssh2:18>: client version 'libssh2_1.4.2 PHP' did
not match regex '^2\.0\.11.*|^2\.0\.12.*'
Aug 20 09:09:35 [23657] <ssh2:18>: checking client version 'libssh2_1.4.2
PHP' against regex '^2\.0\..*'
Aug 20 09:09:35 [23657] <ssh2:18>: client version 'libssh2_1.4.2 PHP' did
not match regex '^2\.0\..*'
Aug 20 09:09:35 [23657] <ssh2:18>: checking client version 'libssh2_1.4.2
PHP' against regex '^2\.2\.0.*|^2\.3\.0.*'
Aug 20 09:09:35 [23657] <ssh2:18>: client version 'libssh2_1.4.2 PHP' did
not match regex '^2\.2\.0.*|^2\.3\.0.*'
Aug 20 09:09:35 [23657] <ssh2:18>: checking client version 'libssh2_1.4.2
PHP' against regex
'^1\.2\.18.*|^1\.2\.19.*|^1\.2\.20.*|^1\.2\.21.*|^1\.2\.22.*|^1\.3\.2.*'
Aug 20 09:09:35 [23657] <ssh2:18>: client version 'libssh2_1.4.2 PHP' did
not match regex
'^1\.2\.18.*|^1\.2\.19.*|^1\.2\.20.*|^1\.2\.21.*|^1\.2\.22.*|^1\.3\.2.*'
Aug 20 09:09:35 [23657] <ssh2:18>: checking client version 'libssh2_1.4.2
PHP' against regex '.*SSH_Version_Mapper.*'
Aug 20 09:09:35 [23657] <ssh2:18>: client version 'libssh2_1.4.2 PHP' did
not match regex '.*SSH_Version_Mapper.*'
Aug 20 09:09:35 [23657] <ssh2:18>: checking client version 'libssh2_1.4.2
PHP' against regex '^Probe-.*'
Aug 20 09:09:35 [23657] <ssh2:18>: client version 'libssh2_1.4.2 PHP' did
not match regex '^Probe-.*'
Aug 20 09:09:35 [23657] <ssh2:18>: checking client version 'libssh2_1.4.2
PHP' against SFTPClientMatch regex '.*'
Aug 20 09:09:35 [23657] <ssh2:16>: setting max server channel window size
to 536870912 bytes, as per SFTPClientMatch
Aug 20 09:09:35 [23657] <ssh2:18>: checking client version 'libssh2_1.4.2
PHP' against SFTPClientMatch regex '.*WS_FTP.*'
Aug 20 09:09:35 [23657] <ssh2:18>: client version 'libssh2_1.4.2 PHP' did
not match SFTPClientMatch regex '.*WS_FTP.*'
Aug 20 09:09:35 [23657] <ssh2:18>: checking client version 'libssh2_1.4.2
PHP' against SFTPClientMatch regex '.*WeOnlyDo.*'
Aug 20 09:09:35 [23657] <ssh2:18>: client version 'libssh2_1.4.2 PHP' did
not match SFTPClientMatch regex '.*WeOnlyDo.*'
Aug 20 09:09:35 [23657] <ssh2:18>: checking client version 'libssh2_1.4.2
PHP' against SFTPClientMatch regex '.*JSCH.*'
Aug 20 09:09:35 [23657] <ssh2:18>: client version 'libssh2_1.4.2 PHP' did
not match SFTPClientMatch regex '.*JSCH.*'
Aug 20 09:09:35 [23657] <ssh2:18>: checking client version 'libssh2_1.4.2
PHP' against SFTPClientMatch regex '.*EldoS.SSHBlackbox.*'
Aug 20 09:09:35 [23657] <ssh2:18>: client version 'libssh2_1.4.2 PHP' did
not match SFTPClientMatch regex '.*EldoS.SSHBlackbox.*'
Aug 20 09:09:36 [23657] <ssh2:20>: SSH2 packet len = 804 bytes
Aug 20 09:09:36 [23657] <ssh2:20>: SSH2 packet padding len = 167 bytes
Aug 20 09:09:36 [23657] <ssh2:20>: SSH2 packet payload len = 636 bytes
Aug 20 09:09:36 [23657] <ssh2:20>: SSH2 packet MAC len = 0 bytes
Aug 20 09:09:36 [23657] <ssh2:3>: received SSH_MSG_KEXINIT (20) packet
Aug 20 09:09:36 [23657] <ssh2:9>: reading KEXINIT message from client
Aug 20 09:09:36 [23657] <ssh2:3>: first kex packet follows = false
Aug 20 09:09:36 [23657] <ssh2:9>: determining shared algorithms for SSH
session
Aug 20 09:09:36 [23657] <ssh2:8>: client-sent key exchange algorithms:
diffie-hellman-group14-sha1,diffie-hellman-group-exchange-sha1,diffie-hellman-group1-sha1
Aug 20 09:09:36 [23657] <ssh2:9>: attempt #1 to create a good DH key
Aug 20 09:09:36 [23657] <ssh2:12>: generating DH key
Aug 20 09:09:36 [23657] <ssh2:10>: good DH public key: 1075 bits set
Aug 20 09:09:36 [23657] <ssh2:8>: client-sent host key algorithms:
ssh-rsa,ssh-dss
Aug 20 09:09:36 [23657] <ssh2:8>: client-sent client encryption algorithms:
aes128-ctr,aes192-ctr,aes256-ctr,aes256-cbc,rijndael-cbc_at_lysator.liu.se
,aes192-cbc,aes128-cbc,blowfish-cbc,arcfour128,arcfour,cast128-cbc,3des-cbc
Aug 20 09:09:36 [23657] <ssh2:8>: client-sent server encryption algorithms:
aes128-ctr,aes192-ctr,aes256-ctr,aes256-cbc,rijndael-cbc_at_lysator.liu.se
,aes192-cbc,aes128-cbc,blowfish-cbc,arcfour128,arcfour,cast128-cbc,3des-cbc
Aug 20 09:09:36 [23657] <ssh2:8>: client-sent client MAC algorithms:
hmac-sha1,hmac-sha1-96,hmac-md5,hmac-md5-96,hmac-ripemd160,
hmac-ripemd160_at_openssh.com
Aug 20 09:09:36 [23657] <ssh2:8>: client-sent server MAC algorithms:
hmac-sha1,hmac-sha1-96,hmac-md5,hmac-md5-96,hmac-ripemd160,
hmac-ripemd160_at_openssh.com
Aug 20 09:09:36 [23657] <ssh2:8>: client-sent client compression
algorithms: none
Aug 20 09:09:36 [23657] <ssh2:8>: client-sent server compression
algorithms: none
Aug 20 09:09:36 [23657] <ssh2:8>: client-sent client languages:
Aug 20 09:09:36 [23657] <ssh2:8>: client-sent server languages:
Aug 20 09:09:36 [23657] <ssh2:20>: SSH2 packet len = 508 bytes
Aug 20 09:09:36 [23657] <ssh2:20>: SSH2 packet padding len = 246 bytes
Aug 20 09:09:36 [23657] <ssh2:20>: SSH2 packet payload len = 261 bytes
Aug 20 09:09:36 [23657] <ssh2:20>: SSH2 packet MAC len = 0 bytes
Aug 20 09:09:36 [23657] <ssh2:3>: received SSH_MSG_KEX_DH_INIT (30) packet
Aug 20 09:09:36 [23657] <ssh2:9>: reading DH_INIT message from client
Aug 20 09:09:36 [23657] <ssh2:9>: writing DH_INIT message to client
Aug 20 09:09:36 [23657] <ssh2:12>: computing DH key
Aug 20 09:09:36 [23657] <ssh2:3>: sent SSH_MSG_KEX_DH_REPLY (31) packet
Aug 20 09:09:36 [23657] <ssh2:9>: reading NEWKEYS message from client
Aug 20 09:09:36 [23657] <ssh2:20>: SSH2 packet len = 180 bytes
Aug 20 09:09:36 [23657] <ssh2:20>: SSH2 packet padding len = 178 bytes
Aug 20 09:09:36 [23657] <ssh2:20>: SSH2 packet payload len = 1 bytes
Aug 20 09:09:36 [23657] <ssh2:20>: SSH2 packet MAC len = 0 bytes
Aug 20 09:09:36 [23657] <ssh2:3>: received SSH_MSG_NEWKEYS (21) packet
Aug 20 09:09:36 [23657] <ssh2:9>: sending NEWKEYS message to client
Aug 20 09:09:36 [23657] <ssh2:3>: sent SSH_MSG_NEWKEYS (21) packet
Aug 20 09:09:36 [23657] <ssh2:9>: setting session keys
Aug 20 09:09:36 [23657] <ssh2:20>: SSH2 packet len = 2751686127 bytes
Aug 20 09:09:36 [23657] <ssh2:20>: SSH2 packet padding len = 209 bytes
Aug 20 09:09:36 [23657] <ssh2:20>: SSH2 packet payload len = 2751685917
bytes
Aug 20 09:09:36 [23657] <ssh2:20>: payload len (2751685917 bytes) exceeds
max payload len (262144), ignoring payload
Aug 20 09:09:36 [23657] <ssh2:3>: reading 10448 bytes of data for discarding
Aug 20 09:09:36 [23657] <ssh2:20>: read 116 bytes, expected 10448 bytes;
pessimistically returning
Aug 20 09:09:36 [23657] <ssh2:9>: disconnecting (Application error) [at
packet.c:1247]
Aug 20 09:09:36 [23657] <ssh2:3>: sent SSH_MSG_DISCONNECT (1) packet

_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2012-10-01

the libssh2 team