ssh

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Client *ssh.Client
}

func Dial

func Dial(addr, identity string) (*Client, error)

func (Client) Forward added in v0.10.0

func (c Client) Forward(local, remote int) error

func (Client) Output

func (c Client) Output(cmd string) ([]byte, error)

func (Client) Push

func (c Client) Push(name string, mode os.FileMode, size int64, r io.Reader) error

func (Client) Run

func (c Client) Run(cmd string, echo bool) error

func (Client) RunPTY

func (c Client) RunPTY(cmd string) error

Jump to

Keyboard shortcuts

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