Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ResolveConflict ¶
ResolveConflict generates a unique ID by appending -imported suffix
func ToConnections ¶
func ToConnections(hosts []ParsedHost) []config.Connection
ToConnections converts a slice of ParsedHosts to hop Connections
Types ¶
type ParsedHost ¶
type ParsedHost struct {
Alias string
HostName string
User string
Port int
IdentityFile string
ProxyJump string
ForwardAgent bool
Options map[string]string
}
ParsedHost represents a parsed SSH config host entry
func Parse ¶
func Parse(path string) ([]ParsedHost, error)
Parse reads an SSH config file and returns a list of parsed hosts
func (*ParsedHost) ToConnection ¶
func (h *ParsedHost) ToConnection() config.Connection
ToConnection converts a ParsedHost to a hop Connection
Click to show internal directories.
Click to hide internal directories.