Versions in this module Expand all Collapse all v0 v0.55.0 May 4, 2024 v0.54.0 Apr 4, 2024 Changes in this version + const DefConnectionAttempts + const DefPort + const DefXAuthLocation + const KeyAddKeysToAgent + const KeyAddressFamily + const KeyBatchMode + const KeyBindAddress + const KeyBindInterface + const KeyCASignatureAlgorithms + const KeyCanonicalDomains + const KeyCanonicalizeFallbackLocal + const KeyCanonicalizeHostname + const KeyCanonicalizeMaxDots + const KeyCanonicalizePermittedCNames + const KeyCertificateFile + const KeyChallengeResponseAuthentication + const KeyCheckHostIP + const KeyClearAllForwardings + const KeyCompression + const KeyConnectTimeout + const KeyConnectionAttempts + const KeyHostname + const KeyIdentityAgent + const KeyIdentityFile + const KeyPort + const KeySendEnv + const KeySetEnv + const KeyUser + const KeyUserKnownHostsFile + const KeyVisualHostKey + const KeyXAuthLocation + const ValueAcceptNew + const ValueAlways + const ValueAny + const ValueAsk + const ValueConfirm + const ValueInet + const ValueInet6 + const ValueNo + const ValueNone + const ValueOff + const ValueYes + type Config struct + func Load(file string) (cfg *Config, err error) + func (cfg *Config) Get(host string) (section *Section) + func (cfg *Config) Merge(other *Config) + type PermittedCNAMEs struct + type Section struct + Field map[string]string + IdentityFile []string + WorkingDir string + func NewSection(cfg *Config, name string) (section *Section) + func (section *Section) CASignatureAlgorithms() []string + func (section *Section) CanonicalDomains() []string + func (section *Section) CanonicalizePermittedCNames() (pcnames *PermittedCNAMEs, err error) + func (section *Section) CertificateFile() []string + func (section *Section) Environments(sysEnv map[string]string) (env map[string]string) + func (section *Section) FieldBool(key string) (vbool bool) + func (section *Section) FieldInt64(key string) (val int64) + func (section *Section) Hostname() string + func (section *Section) IdentityAgent() string + func (section *Section) MarshalText() (text []byte, err error) + func (section *Section) Port() string + func (section *Section) Set(key, value string) (err error) + func (section *Section) Signers() (signers []ssh.Signer, err error) + func (section *Section) User() string + func (section *Section) UserKnownHostsFile() []string + func (section *Section) WriteTo(w io.Writer) (n int64, err error)