Skip to content

x/crypto/ssh: add MultiAlgorithmSigner #52132

Closed
@drakkan

Description

@drakkan

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions