sshconfig

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ResolveConflict

func ResolveConflict(id string, existingIDs map[string]bool) string

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

Jump to

Keyboard shortcuts

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