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: 14 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

Types

type Client

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

func NewSSHClient

func NewSSHClient(connectionType ConnectionType, id string, nsID string, mciID string) (*Client, error)

func (*Client) Close added in v0.5.0

func (c *Client) Close() error

func (*Client) NewSessionWithRetry added in v0.3.1

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

type ConnectionType added in v0.2.1

type ConnectionType int
const (
	ConnectionTypeSource ConnectionType = iota
	ConnectionTypeTarget
)

Jump to

Keyboard shortcuts

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