sshutils

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2018 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadIdentityFile

func ReadIdentityFile(name string) ([]byte, error)

Types

type Client

type Client struct {
	*ssh.Client
	// contains filtered or unexported fields
}

func Dial

func Dial(ctx context.Context, address string, c *Config) (client *Client, err error)

func (*Client) SetDeadline

func (c *Client) SetDeadline(t time.Time) error

func (*Client) SetReadDeadline

func (c *Client) SetReadDeadline(t time.Time) error

func (*Client) SetWriteDeadline

func (c *Client) SetWriteDeadline(t time.Time) error

type Config

type Config struct {
	KeyFunc  KeyFunc
	Username string
	Password string
}

type KeyFunc

type KeyFunc func() ([]byte, error)

Jump to

Keyboard shortcuts

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