ssh

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2021 License: Apache-2.0 Imports: 14 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 {
	// contains filtered or unexported fields
}

func Connect

func Connect(host, port, user, password, key string) (*Client, error)

func ConnectByJumpServer

func ConnectByJumpServer(host, port, user, password, key string, jumpServer *Client) (*Client, error)

func (*Client) Close

func (c *Client) Close() error

func (*Client) Run

func (c *Client) Run(cmd string) error

func (*Client) RunOut

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

func (*Client) SendFile added in v0.2.0

func (c *Client) SendFile(dstFile, srcFile string) error

Jump to

Keyboard shortcuts

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