Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type HostConfig ¶
type HostConfig struct {
Host string
User string
Port int
IdentityFile []string
IdentitiesOnly bool
IdentityAgent string
AgentDisabled bool
HostKeyAlias string
KnownHosts string
// KnownHostsDisabled records an explicit UserKnownHostsFile none. The
// system-wide defaults may still be active unless
// GlobalKnownHostsDisabled is also true.
KnownHostsDisabled bool
// GlobalKnownHostsDisabled records an explicit
// GlobalKnownHostsFile none. UserKnownHostsFile defaults still apply in
// that case, but the system-wide files must not be reintroduced by the
// fallback below.
GlobalKnownHostsDisabled bool
// KnownHostsFiles preserves the configured/default user and system files
// while KnownHosts remains the first path for callers that only need one
// value.
KnownHostsFiles []string
}
HostConfig contains the SSH connection values needed by the embedded client. It intentionally covers the portable subset of ~/.ssh/config that can be implemented without invoking the OpenSSH binary.
type HostEntry ¶
type HostEntry struct {
Name string
Config HostConfig
Error string
}
HostEntry is a selectable alias from the user's SSH configuration.
type Options ¶
type Options struct {
Target string
RemoteAddress string
LocalAddress string
SSHConfigPath string
KnownHostsPath string
IdentityFiles []string
ConnectTimeout time.Duration
BootstrapTimeout time.Duration
}
Options controls one embedded SSH forwarding connection.
Click to show internal directories.
Click to hide internal directories.