ssh

package
v0.2.8 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetHostKey added in v0.2.7

func GetHostKey(addr string, timeout time.Duration) (string, error)

GetHostKey fetches the host public key without authenticating.

func NeedsPassphrase added in v0.2.3

func NeedsPassphrase(privateKeyFile string) (bool, error)

Types

type Client

type Client interface {
	Close()
	Execute(command string) (output string, err error)
	CopyFile(from, to, permissions string) (err error)
	KnownHostsEntry() string
}

func NewClient

func NewClient(addr, user, privateKeyFile string, timeout time.Duration) (Client, error)

func NewClientWithPassphrase added in v0.2.3

func NewClientWithPassphrase(addr, user, privateKeyFile string, timeout time.Duration, passphrase []byte) (Client, error)

Jump to

Keyboard shortcuts

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