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

Closed
Karlson2k opened this Issue Feb 22, 2016 · 3 comments

Projects

None yet

2 participants

@Karlson2k
Contributor

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 127.0.0.1 port 49934 on 127.0.0.1 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
Collaborator
kdudka commented Feb 22, 2016

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

http://pkgs.fedoraproject.org/cgit/rpms/curl.git/commit/?id=e57a7415

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

@kdudka
Collaborator
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}
@Karlson2k
Contributor

@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
effa575
@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