Skip to content

SFTP to Azure storage blob break from 1.11.0 to 1.11.1 #1593

@bbo-igel

Description

@bbo-igel

Describe the bug
SFTP to Azure Storage blob using curl stopped working when we updated from libssh2 1.11.0 to libssh2 1.11.1
I wrote a standalone C application that uses SFTP via libssh2 and confirmed the issue.

To Reproduce
curl -k --user USERNAME sftp://STORAGENAME.blob.core.windows.net
curl: (2) Failure establishing ssh session: -8, Unable to exchange encryption keys

Expected behavior
SFTP connection established

Version (please complete the following information):

  • debian based Linux distribution
  • libssh2 version: 1.11.1

Additional context
Not working: libssh2 1.11.1

Client-supported KEX algorithms (API):
  curve25519-sha256
  [email protected]
  ecdh-sha2-nistp256
  ecdh-sha2-nistp384
  ecdh-sha2-nistp521
  diffie-hellman-group-exchange-sha256
  diffie-hellman-group16-sha512
  diffie-hellman-group18-sha512
  diffie-hellman-group14-sha256
  diffie-hellman-group14-sha1
  diffie-hellman-group1-sha1
  diffie-hellman-group-exchange-sha1
  ext-info-c
  [email protected]
Key exchange failed: return code=-8, libssh2_error=-8
Message: Unable to exchange encryption keys

Working: libssh2 1.11.0

Client-supported KEX algorithms (API):
  curve25519-sha256
  [email protected]
  ecdh-sha2-nistp256
  ecdh-sha2-nistp384
  ecdh-sha2-nistp521
  diffie-hellman-group-exchange-sha256
  diffie-hellman-group16-sha512
  diffie-hellman-group18-sha512
  diffie-hellman-group14-sha256
  diffie-hellman-group14-sha1
  diffie-hellman-group1-sha1
  diffie-hellman-group-exchange-sha1

Seems like no KEX were removed between 1.11.0 and 1.11.1, instead there are 2 additional ones.

Edit:
Trace output:
libssh2_trace.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions