Closed l0rd closed 3 weeks ago
LGTM
@containers/podman-maintainers PTAL, I have added some new podman tests that are passing with the changes included in this PR.
[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: l0rd, Luap99
The full list of commands accepted by this bot can be found here.
The pull request process is described here
TL;DR This PR addresses this issue. In this containers/podman PR, I have added some specific tests.
The package golang.org/x/crypto/ssh/knownhosts has an issue when an SSH server has many public keys (i.e., supports multiple crypto algorithms).
For instance, if the local
known_hosts
file entries don't match the first SSH server key but match other SSH server keys, the handshake fails with a key mismatch error.See https://github.com/golang/go/issues/29286 and https://github.com/containers/podman/issues/23575.
Package github.com/skeema/knownhosts is a wrapper of
x/crypto/ssh/knownhosts
that addresses this issue.This commit replaces the usage of
x/crypto/ssh/knownhosts
in containers/common withgithub.com/skeema/knownhosts
.