ssh

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2020 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Agent

func Agent() (gossh.AuthMethod, error)

Agent used for SSH auth.

func EncodePrivateKeyToPEM

func EncodePrivateKeyToPEM(privateKey *rsa.PrivateKey) []byte

EncodePrivateKeyToPEM is a helper function for converting a key to PEM format.

func EnterKeyPhrase

func EnterKeyPhrase(keyFile string) []byte

EnterKeyPhrase is required to read phrase protected private keys.

func GeneratePrivateRSAKey

func GeneratePrivateRSAKey(size int) (*rsa.PrivateKey, error)

GeneratePrivateRSAKey is used by the server to generate its key.

func KeyFile

func KeyFile(keyFile string) (gossh.AuthMethod, error)

KeyFile returns the key as a SSH auth method.

func PrivateKey

func PrivateKey(keyFile string) (gossh.AuthMethod, error)

PrivateKey returns the private key as a SSH auth method.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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