ssh

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2022 License: MIT Imports: 8 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) 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) 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