sshconfig

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2017 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoKnownHostsFile = errors.New("sshconfig: missing known hosts file")

ErrNoKnownHostsFile is returned when the KnownHostsFile field is empty.

Functions

This section is empty.

Types

type MetaConfig

type MetaConfig struct {
	KnownHostsFile string
	SSHDialTimeout time.Duration
	// contains filtered or unexported fields
}

MetaConfig holds configuration options to use to create SSH client configurations.

func (*MetaConfig) WithAgent

func (c *MetaConfig) WithAgent(user string) (*ssh.ClientConfig, error)

WithAgent returns an SSH ClientConfig that authenticates via the SSH agent.

Jump to

Keyboard shortcuts

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