vault: github.com/hashicorp/vault/builtin/logical/ssh Index | Files

package ssh

import "github.com/hashicorp/vault/builtin/logical/ssh"

Index

Package Files

backend.go communicator.go linux_install_script.go path_config_ca.go path_config_zeroaddress.go path_creds_create.go path_fetch.go path_keys.go path_lookup.go path_roles.go path_sign.go path_verify.go secret_dynamic_key.go secret_otp.go util.go

Constants

const (
    // KeyTypeOTP is an key of type OTP
    KeyTypeOTP = "otp"
    // KeyTypeDynamic is dynamic key type
    KeyTypeDynamic = "dynamic"
    // KeyTypeCA is an key of type CA
    KeyTypeCA = "ca"
)
const (
    DefaultPublicKeyInstallScript = "" /* 2469 byte string literal not displayed */

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

func Backend Uses

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

func Factory Uses

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

func SSHCommNew Uses

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.

type SSHCommConfig Uses

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.

Package ssh imports 38 packages (graph) and is imported by 37 packages. Updated 2019-06-23. Refresh now. Tools for package owners.