ssh

package
v0.4.15 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 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) GetClient

func (c *Client) GetClient() *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
}

func NewServerConfig

func NewServerConfig() *ServerConfig

Jump to

Keyboard shortcuts

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