Testsuite tests with SSH server were skipped with OpenSSH 7.1p2 #676

Karlson2k opened this Issue Feb 22, 2016 · 3 comments


None yet

2 participants


Step to reproduce:

  1. Make sure that OpenSSH (client and daemon) 7.0 or later is installed
  2. Build libcurl for git sources with configure and make
  3. Run make test-full.
  4. Notice string in final results TESTINFO: "failed starting SSH server" 56 times (564, 582, 583, 600, 601, 602, 603, 604, 605 and 47 more)

From ssh_server.log:

Connection from port 49934 on port 8999
debug1: Client protocol version 2.0; client software version OpenSSH_7.1p2 Debian-2
debug1: match: OpenSSH_7.1p2 Debian-2 pat OpenSSH* compat 0x04000000
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_7.1p2 Debian-2
debug2: fd 3 setting O_NONBLOCK
debug1: list_hostkey_types: 
No supported key exchange algorithms
debug1: do_cleanup

This is from Debian Testing machine. Same problem on Win64/Msys2.
Suspect that reason can be that OpenSSH disabled DSA since version 7.0.

Possibly related PR #675

kdudka commented Feb 22, 2016

This is a workaround for the problem I have installed for Fedora builds:


I believe we can solve it this way in upstream curl, too.

kdudka commented Feb 22, 2016

The fix could be as easy as this:

sed -e 's/ds[as]/rsa/g' -i tests/ssh{help.pm,server.pl}

@kdudka Thanks!

@kdudka kdudka self-assigned this Feb 23, 2016
@kdudka kdudka added a commit that closed this issue Feb 23, 2016
@kdudka kdudka tests/sshserver.pl: use RSA instead of DSA for host auth
DSA is no longer supported by OpenSSH 7.0, which causes all SCP/SFTP
test cases to be skipped.  Using RSA for host authentication works with
both old and new versions of OpenSSH.

Reported-by: Karlson2k

Closes #676
@kdudka kdudka closed this in effa575 Feb 23, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment