ssh

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2023 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddSSHKeyToKnownHosts

func AddSSHKeyToKnownHosts(ctx context.Context, ip string) error

AddSSHKeyToKnownHosts adds an SSH key fingerprint to the known_hosts file.

func GetSSHConfig

func GetSSHConfig(privateKeyFileContent []byte) (*ssh.ClientConfig, error)

func NewSSHSession

func NewSSHSession(addr string, config *ssh.ClientConfig) (*ssh.Session, error)

func ReadSSHKey

func ReadSSHKey(path string) (string, error)

func WaitForSSH

func WaitForSSH(addr string, config *ssh.ClientConfig) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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