ssh

package
v2.13.1 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Tunnel added in v2.11.8

func Tunnel(sshClient *ssh.Client, local, remote string, stopChan <-chan struct{}, readyChan chan<- net.Addr) error

Types

type Host added in v2.11.8

type Host struct {
	Address string `json:"address"`
	Port    int    `json:"port"`
	User    string `json:"user"`

	PrivateKeyData []byte `json:"privateKeyData,omitempty"`
	PrivateKeyFile string `json:"privateKeyFile,omitempty"`
}

type Session added in v2.11.8

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

func NewSession added in v2.11.8

func NewSession(client *ssh.Client, reportPath string, name string, verbose bool, cmd string) (*Session, error)

func (*Session) Close added in v2.11.8

func (s *Session) Close() error

func (*Session) Run added in v2.11.8

func (s *Session) Run() error

func (*Session) Signal added in v2.11.8

func (s *Session) Signal(signal ssh.Signal, wait bool) error

func (*Session) Start added in v2.11.8

func (s *Session) Start() error

func (*Session) StdErrFile added in v2.11.8

func (s *Session) StdErrFile() string

func (*Session) StdOutFile added in v2.11.8

func (s *Session) StdOutFile() string

func (*Session) Wait added in v2.11.8

func (s *Session) Wait() error

Jump to

Keyboard shortcuts

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