Help us shape the future of Go! Take the 2026 Go Developer Survey

sshutil

package
v2.53.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 22, 2026 License: MIT Imports: 5 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateKeyPair

func GenerateKeyPair() ([]byte, []byte, error)

GenerateKeyPair generates a new ed25519 ssh key pair, and returns the private key and the public key respectively.

Experimental: `exp` package is experimental, breaking changes may occur within minor releases.

func GeneratePublicKey

func GeneratePublicKey(privBytes []byte) ([]byte, error)

GeneratePublicKey generate a public key from the provided private key.

Experimental: `exp` package is experimental, breaking changes may occur within minor releases.

func GetPublicKeyFingerprint

func GetPublicKeyFingerprint(pubBytes []byte) (string, error)

GetPublicKeyFingerprint generate the finger print for the provided public key.

Experimental: `exp` package is experimental, breaking changes may occur within minor releases.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL