mirror of
https://github.com/henrygd/beszel.git
synced 2026-09-29 04:47:46 +02:00
ssh.ClientConfig.Timeout only covers the TCP connect. A peer that accepts the connection but never sends an SSH banner blocked ssh.NewClientConn forever, wedging the system's updater goroutine and leaking the socket. Set a deadline on the conn for the handshake and clear it afterward.