ssh

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RSAKeyAlgorithm     = "rsa"
	Ed25519KeyAlgorithm = "ed25519"

	RSAKeyLengthBits = 2048
)

Variables

View Source
var (
	KeyAlgorithms = []string{RSAKeyAlgorithm, Ed25519KeyAlgorithm}

	ErrUnexpectedKeyAlgorithm         = errors.New("unexpected key algorithm")
	ErrUnexpectedTypeEd25519PublicKey = errors.New("unexpected type for ed25519 public key")
)

Functions

func CreateSSHKeyPair

func CreateSSHKeyPair(keyAlgorithm string) (string, string, error)

Types

type KeyAlgorithm added in v0.7.0

type KeyAlgorithm string

Jump to

Keyboard shortcuts

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