curl / Mailing Lists / curl-library / Single Mail

curl-library

SFTP problem with Windows and handshake.

From: Christian Schmitz <filemakerlists_at_monkeybreadsoftware.de>
Date: Wed, 22 Nov 2017 14:24:10 +0100

Hi,

We have a problem that SFTP does not work for a client on Windows

Trying 54.252.xx.yy...
TCP_NODELAY set
Connected to ddg-mgs.businesscatalyst.com (54.252.xx.yy) port 22 (#0)
Failure establishing ssh session
Closing

Now I looked into ssh.c:

      rc = libssh2_session_startup(sshc->ssh_session, (int)sock);
      if(rc == LIBSSH2_ERROR_EAGAIN) {
        break;
      }
      if(rc) {
        failf(data, "Failure establishing ssh session");
        state(conn, SSH_SESSION_FREE);
        sshc->actualcode = CURLE_FAILED_INIT;
        break;
      }

Could this be changed to include the error code in rc in the message?
With a small test tool I got the code: -41.

If that’s right, we have LIBSSH2_ERROR_OUT_OF_BOUNDARY and that seems to happen if the packet length in SSH library is too big.
Anyone seen this?

Sincerely
Christian

-- 
Read our blog about news on our plugins:
http://www.mbsplugins.de/
-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette:   https://curl.haxx.se/mail/etiquette.html
Received on 2017-11-22