ssh

package
v1.0.11 Latest Latest
Warning

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

Go to latest
Published: May 12, 2026 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExitStatus

func ExitStatus(err error) (int, bool)

Types

type JumpHost added in v1.0.9

type JumpHost struct {
	Host    string
	User    string
	Port    string
	KeyPath string
}

type Option

type Option func(*SSHTerminal)

func SetExitMessage

func SetExitMessage(msg string) Option

func SetInitCmds

func SetInitCmds(initcmds string) Option

func SetJumpHost added in v1.0.9

func SetJumpHost(jump JumpHost) Option

func SetKeyPath

func SetKeyPath(keypath string) Option

func SetPort

func SetPort(port string) Option

func SetProxyCommand added in v1.0.10

func SetProxyCommand(command string) Option

type SSHTerminal

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

func New

func New(ip, user, pass string, options ...Option) *SSHTerminal

func (*SSHTerminal) Close

func (t *SSHTerminal) Close() error

func (*SSHTerminal) Run

func (t *SSHTerminal) Run(cmd string) error

func (*SSHTerminal) Start

func (t *SSHTerminal) Start() error

Jump to

Keyboard shortcuts

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