Closed
Description
Currently Go's SSH package doesn't permit a server to disable some host keys algorithms, for example if you provide an RSA host key we can't disable ssh-rsa
which use sha1 and is disabled by default in recent versions of OpenSSH.
I propose adding a HostKeyAlgorithms
string list to the ServerConfig similar to the one already available for the ClientConfig:
// A list of enabled host key algorithms. If unspecified then a sensible
// default is used.
HostKeyAlgorithms []string
I have submitted a PR that implement this new feature. This is the proposal for the API change.