ssh

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2015 License: MPL-2.0 Imports: 24 Imported by: ? 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

View Source
const (
	KeyTypeOTP     = "otp"
	KeyTypeDynamic = "dynamic"
)
View Source
const (
	// This is a constant representing a script to install and uninstall public
	// key in remote hosts.
	DefaultPublicKeyInstallScript = `` /* 2279-byte string literal not displayed */

)
View Source
const SecretDynamicKeyType = "secret_dynamic_key_type"
View Source
const SecretOTPType = "secret_otp_type"

Variables

This section is empty.

Functions

func Backend

func Backend(conf *logical.BackendConfig) (*framework.Backend, error)

func Factory

func Factory(conf *logical.BackendConfig) (logical.Backend, error)

func SSHCommNew

func SSHCommNew(address string, config *SSHCommConfig) (result *comm, err error)

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

Types

type SSHCommConfig

type SSHCommConfig struct {
	// The configuration of the Go SSH connection
	SSHConfig *ssh.ClientConfig

	// Connection returns a new connection. The current connection
	// in use will be closed as part of the Close method, or in the
	// case an error occurs.
	Connection func() (net.Conn, error)

	// Pty, if true, will request a pty from the remote end.
	Pty bool

	// DisableAgent, if true, will not forward the SSH agent.
	DisableAgent bool
}

SSHCommConfig is the structure used to configure the SSH communicator.

Jump to

Keyboard shortcuts

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