ssh

package
v1.6.2 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2024 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SSHKeyED25519Filename = "id_ed25519"
	SSHDefaultFilename    = SSHKeyED25519Filename
	SSHDefaultTimeOut     = time.Duration(15 * time.Second)
)

Variables

View Source
var ErrNoSSHKeyFile = errors.New("no ssh key file")

Functions

func CreateSSHConfig

func CreateSSHConfig(filename, username string, timeout time.Duration) (*ssh.ClientConfig, error)

CreateSSHConfig - creates ssh client config.

func LookupForSSHKeyfile

func LookupForSSHKeyfile(keyFilename, path string) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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