ssh

package
v0.8.3 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EncodePrivateKey

func EncodePrivateKey(private *rsa.PrivateKey) []byte

EncodePrivateKey ssh编码私钥

func EncodeSSHKey

func EncodeSSHKey(public *rsa.PublicKey) ([]byte, error)

EncodeSSHKey 编码ssh key

func GenerateKey

func GenerateKey(bits int) (*rsa.PrivateKey, *rsa.PublicKey, error)

GenerateKey 生成密钥对

func MakeSSHKeyPair

func MakeSSHKeyPair() (prvKeyContent string, pubKeyContent string, err error)

MakeSSHKeyPair 生成ssh密钥对

Types

This section is empty.

Jump to

Keyboard shortcuts

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