ssh

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2017 License: MPL-2.0 Imports: 33 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KeyTypeOTP     = "otp"
	KeyTypeDynamic = "dynamic"
	KeyTypeCA      = "ca"
)
View Source
const (
	// This is a constant representing a script to install and uninstall public
	// key in remote hosts.
	DefaultPublicKeyInstallScript = `` /* 2350-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) (*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

	// Logger for output
	Logger log.Logger
}

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