Skip to content

x/crypto/ssh: support additional MACs #17676

@rickard-von-essen

Description

@rickard-von-essen

Support OpenSSH etm and umac ssh MAC's to allow Go to connect to ssh servers which don't allow older MAC's.

Currently golang.org/x/crypto/ssh packer only supports:

  • hmac-sha2-256
  • hmac-sha1
  • hmac-sha1-96

see ssh/mac.go#L47

The default MAC's in OpenBSD 6.0, see sshd_config (5) - MACs, in priority order is:

Only the two in bold overlap with the Go supported MAC's. The OpenSSH docs also state:

The algorithms that contain “-etm” calculate the MAC after encryption (encrypt-then-mac). These are considered safer and their use recommended

Following this leaves Go based software unable to connect over SSH.

go version go1.7.1 darwin/amd64

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeNeedsFixThe path to resolution is known, but the work has not been done.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions