Andrew Geissler | 6aa7eec | 2023-03-03 12:41:14 -0600 | [diff] [blame^] | 1 | In 8.8 OpenSSH disabled sha1 rsa-sha keys out of the box, |
| 2 | so we need to re-enable them as a workaround for the test |
| 3 | suite until upstream updates the tests. |
| 4 | |
| 5 | See: https://github.com/libssh2/libssh2/issues/630 |
| 6 | |
| 7 | Upstream-Status: Backport [alternative fixes merged upstream] |
| 8 | |
| 9 | Patch taken from https://github.com/mirror-rpm/libssh2/commit/47f7114f7d0780f3075bad51a71881f45cc933c5 |
| 10 | |
| 11 | --- a/tests/ssh2.sh |
| 12 | +++ b/tests/ssh2.sh |
| 13 | @@ -25,7 +25,8 @@ $SSHD -f /dev/null -h "$srcdir"/etc/host |
| 14 | -o 'Port 4711' \ |
| 15 | -o 'Protocol 2' \ |
| 16 | -o "AuthorizedKeysFile $srcdir/etc/user.pub" \ |
| 17 | - -o 'UsePrivilegeSeparation no' \ |
| 18 | + -o 'HostKeyAlgorithms +ssh-rsa' \ |
| 19 | + -o 'PubkeyAcceptedAlgorithms +ssh-rsa' \ |
| 20 | -o 'StrictModes no' \ |
| 21 | -D \ |
| 22 | $libssh2_sshd_params & |
| 23 | |