ssh

package
v0.4.35 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthMethodType

type AuthMethodType string
const (
	AuthMethodTypeNone     AuthMethodType = "none"
	AuthMethodTypePassword AuthMethodType = "password"
	AuthMethodTypeKey      AuthMethodType = "key"
)

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(config *Config) (*Client, error)

func (*Client) Close

func (c *Client) Close() error

func (*Client) RawClient added in v0.4.22

func (c *Client) RawClient() *ssh.Client

type Config

type Config struct {
	ServerConfig
	JumpServers []ServerConfig
}

func NewDefaultConfig

func NewDefaultConfig() *Config

type ServerConfig

type ServerConfig struct {
	Host           string
	Port           int
	AuthMethod     AuthMethodType
	Username       string
	Password       string
	Key            string
	KeyPassphrase  string
	KeyCertificate string
}

func NewServerConfig

func NewServerConfig() *ServerConfig

Jump to

Keyboard shortcuts

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