ssh

package
Version: v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2021 License: Apache-2.0 Imports: 10 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

Source Files

Jump to

Keyboard shortcuts

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