Documentation ¶
Overview ¶
package ssh provides utilities to manage SSH host keys in Ed25519 format. Some code is copied with minor edits from golang.org/x/crypto/ssh, see separate LICENCE which applies from the write() method and forward.
Index ¶
Constants ¶
View Source
const (
PEMTypePrivateKey = "OPENSSH PRIVATE KEY"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HostKey ¶
type HostKey struct { Private ed25519.PrivateKey Check uint32 Comment string }
HostKey represents the private output of the following command:
ssh-keygen -t ed25519 -c "some comment"
func NewHostKey ¶
NewHostKey generates a new host key in Ed25519 format
func (*HostKey) Fingerprint ¶
Fingerprint outputs a host key's SHA256 fingerprint
Click to show internal directories.
Click to hide internal directories.