MCPcopy Create free account
hub / github.com/Mister-leo/fssh / HostConfig

Struct HostConfig

internal/sshconfig/hostconfig.go:12–45  ·  view source on GitHub ↗

HostConfig represents a complete SSH host configuration

Source from the content-addressed store, hash-verified

10
11// HostConfig represents a complete SSH host configuration
12type HostConfig struct {
13 // Basic identity
14 Name string // Host alias
15 Hostname string // Target hostname/IP
16
17 // Authentication
18 User string // SSH username
19 Port string // SSH port (default 22)
20 IdentityFile []string // Direct identity files
21 IdentityAgent string // SSH agent socket path
22
23 // Proxy configuration (mutually exclusive)
24 ProxyCommand string // Full proxy command
25 ProxyJump string // SSH jump host
26
27 // Additional fields
28 ForwardAgent string // yes/no
29 ServerAliveInterval string // keep-alive interval
30
31 // Global configuration fields
32 ServerAliveCountMax string // keep-alive max count
33 AddKeysToAgent string // yes/no/ask/confirm
34 UseKeychain string // yes/no (macOS only)
35 PubkeyAcceptedAlgorithms string // algorithm list
36 StrictHostKeyChecking string // yes/no/ask/accept-new
37 UserKnownHostsFile string // known hosts file path
38 Compression string // yes/no
39 TCPKeepAlive string // yes/no
40
41 // Internal metadata
42 Comment string // Inline comment from config
43 LineNumber int // Original line number (for debugging)
44 IsGlobal bool // true for "Host *" blocks
45}
46
47// ProxyType represents the type of proxy configuration
48type ProxyType int

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected