Skip to content

x/crypto/ssh: MarshalAuthorizedKey discards comment #46870

Open
@dpogorzelski

Description

@dpogorzelski

What version of Go are you using (go version)?

1.16

Does this issue reproduce with the latest release?

yes

What operating system and processor architecture are you using (go env)?

go env Output
GOHOSTARCH="amd64"
GOHOSTOS="darwin"

Hello, it seems like https://github.com/golang/crypto/blob/master/ssh/keys.go#L281 will never consider writing the comment of the key so when parsing such key later on via https://github.com/golang/crypto/blob/master/ssh/keys.go#L85 the comment value will always be empty.

Metadata

Metadata

Assignees

No one assigned

    Labels

    NeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions