sshutil

package
v2.33.0 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2025 License: MIT Imports: 5 Imported by: 3

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