ssh

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2013 License: MPL-2.0 Imports: 14 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(c net.Conn, config *ssh.ClientConfig) (result *comm, err error)

Creates a new packer.Communicator implementation over SSH. This takes an already existing TCP connection and SSH configuration.

Types

type Password

type Password string

An implementation of ssh.ClientPassword so that you can use a static string password for the password to ClientAuthPassword.

func (Password) Password

func (p Password) Password(user string) (string, error)

type SimpleKeychain

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

func (*SimpleKeychain) AddPEMKey

func (k *SimpleKeychain) AddPEMKey(key string) (err error)

AddPEMKey adds a simple PEM encoded private key to the keychain.

func (*SimpleKeychain) Key

func (k *SimpleKeychain) Key(i int) (interface{}, error)

Key method for ssh.ClientKeyring interface

func (*SimpleKeychain) Sign

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

Sign method for ssh.ClientKeyring interface

Jump to

Keyboard shortcuts

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