ssh

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2025 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddKnownHost

func AddKnownHost(host string, remote net.Addr, key ssh.PublicKey) error

func ExecuteScript

func ExecuteScript(nsID string, mciID string, vmID string, base64EncodedContent string) ([]byte, error)

Types

type Client

type Client struct {
	*goph.Client
	SSHTarget *model.SSHTarget
	// contains filtered or unexported fields
}

func NewSSHClient

func NewSSHClient(nsID string, mciID string, vmID string) (*Client, error)

func (*Client) Close added in v0.5.0

func (c *Client) Close() error

func (*Client) NewSessionWithRetry

func (c *Client) NewSessionWithRetry() (*ssh.Session, error)

Jump to

Keyboard shortcuts

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