Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( WireGuardManagerCtor func(debug bool) manager.Manager = func(debug bool) manager.Manager { return wireguard.NewManager(debug) } TailscaleManagerCtor func(debug bool) manager.Manager = func(debug bool) manager.Manager { return tailscale.NewManager(debug) } DirectManagerCtor func(debug bool) manager.Manager = func(debug bool) manager.Manager { return direct.NewManager(debug) } )
Dependency injection for tunnel manager constructors (for testing)
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client handles SSH connections and tunnel management.
func NewClient ¶
func NewClient(cfg *config.WireSshConfig, debug bool, debugTunnel bool) *Client
NewClient creates a new SSH client with the given configuration and debug flags.
func (*Client) Connect ¶
Connect establishes an SSH connection over the configured tunnel, sets up port forwarding and session recording if enabled. It handles authentication using identity files and SSH agents, verifies host keys, and manages terminal I/O. The function returns an error if the connection or session setup fails.
Click to show internal directories.
Click to hide internal directories.