Skip to content

x/crypto/ssh: no example for server with public key authentication #13902

Closed
@mdlayher

Description

@mdlayher

An example SSH server that uses password authentication is provided, but I can't seem to find any official examples on how to use public key authentication with an x/crypto/ssh SSH server.

Password example:
https://godoc.org/golang.org/x/crypto/ssh#example-NewServerConn

Perhaps I'm missing something, but adding an example to demonstrate SSH public key authentication would be incredibly helpful. Thanks in advance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions