Documentation ¶
Index ¶
- func AddSSHKeyToKnownHosts(ctx context.Context, ip string) error
- func GetSSHConfig(privateKeyFileContent []byte) (*ssh.ClientConfig, error)
- func NewSSHSession(addr string, config *ssh.ClientConfig) (*ssh.Session, error)
- func ReadSSHKey(path string) (string, error)
- func WaitForSSH(addr string, config *ssh.ClientConfig) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddSSHKeyToKnownHosts ¶
AddSSHKeyToKnownHosts adds an SSH key fingerprint to the known_hosts file.
func GetSSHConfig ¶
func GetSSHConfig(privateKeyFileContent []byte) (*ssh.ClientConfig, error)
func NewSSHSession ¶
func ReadSSHKey ¶
func WaitForSSH ¶
func WaitForSSH(addr string, config *ssh.ClientConfig) error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.