ssh

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

from: https://github.com/lgarithm/go/blob/master/net/ssh/ssh.go Package ssh is a simple wrapper for golang.org/x/crypto/ssh

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
}

Client is a wrapper for ssh.Client

func New

func New(cfg Config) (*Client, error)

New creates a new Client

func (*Client) Close

func (c *Client) Close() error

Close closes the client

func (*Client) String

func (c *Client) String() string

func (*Client) Watch

func (c *Client) Watch(ctx context.Context, cmd string, redirectors []*iostream.StdWriters) error

type Config

type Config struct {
	User string
	Host string
}

Config is a pair of user and host

Jump to

Keyboard shortcuts

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