ssh

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2021 License: Apache-2.0 Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HostKeyCallback

func HostKeyCallback(hostPublicKey ssh.PublicKey) ssh.HostKeyCallback

func HostPublicKey

func HostPublicKey(host string) (ssh.PublicKey, error)

func ReadPrivateKey

func ReadPrivateKey(privateKeyPath string) ([]byte, error)

ReadPrivateKey reads the provided private SSH key file and returns the corresponding bytes.

func SignerFromPrivateKey

func SignerFromPrivateKey(privateKeyPath string, privateKey []byte) (ssh.Signer, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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