ssh

package
v0.0.0-...-ffa7171 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2014 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Keychain

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

func (*Keychain) AddPEMKey

func (k *Keychain) AddPEMKey(privateKeyPath string) error

func (*Keychain) AddPEMKeyPassword

func (k *Keychain) AddPEMKeyPassword(key string, password string) (err error)

func (*Keychain) Key

func (k *Keychain) Key(i int) (key ssh.PublicKey, err error)

func (*Keychain) Sign

func (k *Keychain) Sign(i int, rand io.Reader, data []byte) (sig []byte, err error)

type ScpStorage

type ScpStorage struct {
	Keychain *Keychain
	Password string
	User     string
	Endpoint string
	// contains filtered or unexported fields
}

func NewScpStorage

func NewScpStorage(host, port, user, password string, keychain *Keychain) *ScpStorage

func (*ScpStorage) Connect

func (ss *ScpStorage) Connect() error

func (*ScpStorage) Pull

func (ss *ScpStorage) Pull(remotePath, localPath string) error

func (*ScpStorage) Push

func (ss *ScpStorage) Push(localPath, remotePath string) error

Jump to

Keyboard shortcuts

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