Documentation
¶
Index ¶
Constants ¶
View Source
const ( DefaultPort int = 8022 DefaultUserPort int = 12023 )
Variables ¶
This section is empty.
Functions ¶
func SweepStaleAgentSockets ¶ added in v1.3.1
func SweepStaleAgentSockets()
SweepStaleAgentSockets removes per-connection agent socket directories whose owning process is no longer alive. Liveness is detected via a per-directory flock: the owning process holds an exclusive flock on the lockfile for its lifetime, so any other process that can successfully take the flock knows the original owner is gone.
Call this at the start of every helper ssh-server process: in stdio mode the in-container helper is often SIGKILLed by docker exec when the proxy chain tears down, which skips all deferred cleanup (including ConnectionClosingCallback). Subsequent helper invocations sweep what the dying predecessor couldn't clean up.
Types ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.