ssh

package
v2.6.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2017 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatPublicKey

func FormatPublicKey(key interface{}) ([]byte, error)

Types

type Connection

type Connection interface {
	UploadFile(path string, data []byte) (bool, error)
	RunCommand(command string, output io.Writer) (uint8, error)
	Close() error
}

type Dialer

type Dialer interface {
	Dial(address, username string) (Connection, error)
}

type SSHDialer

type SSHDialer struct {
	// contains filtered or unexported fields
}

func NewDialer

func NewDialer(keyPath, keyPassphrase string) (*SSHDialer, error)

func NewDialerWithKey

func NewDialerWithKey(key crypto.Signer) (*SSHDialer, error)

func NewDialerWithPassword

func NewDialerWithPassword(password string) (*SSHDialer, error)

func (*SSHDialer) Dial

func (d *SSHDialer) Dial(address, username string) (Connection, error)

Jump to

Keyboard shortcuts

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