Files
tailscale/ssh/tailssh
Brad Fitzpatrick 217b17246f ssh/tailssh: move agent forwarding and policy helpers to shared files
Move handleSSHAgentForwarding and closeAgentForwarding from process_unix.go
into tailssh.go, since they only use the platform seams (fwdListenAgent and
removeAgentForwardingDir) and have no Unix-specific code of their own. Move
the sshForwardGatewayPorts knob into fwdmonitor.go next to its only user,
and move the evalSSHPolicy and matchRule convenience wrappers into the test
file, which is the only place that calls them.

This is a no-op refactor in preparation for a port of the SSH server to
another platform, so that the port does not need its own copies of these
functions or carry unused declarations.

Updates #cleanup

Signed-off-by: Brad Fitzpatrick <[email protected]>
Change-Id: I7c3e1f0a9d2b4e6f8a1c3e5d7f9b1d3f5a7c9e1b
2026-11-13 02:26:23 +00:00
..
2026-04-10 10:48:50 -07:00