ssh

package
v0.1.2-rc1 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const Timeout = 5 * time.Second

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 string, port uint, user, sshKeyPath string) (*Client, error)

func (*Client) ExecuteCmd

func (c *Client) ExecuteCmd(cmd string) (string, error)

func (*Client) RemoteAddr

func (c *Client) RemoteAddr() string

Jump to

Keyboard shortcuts

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