| Summary: | Fails to unlink ControlMaster socket early enough, confuses other clients | ||
|---|---|---|---|
| Product: | Portable OpenSSH | Reporter: | Paul Evans <leonerd> |
| Component: | ssh | Assignee: | Assigned to nobody <unassigned-bugs> |
| Status: | NEW --- | ||
| Severity: | normal | CC: | djm |
| Priority: | P5 | ||
| Version: | 7.9p1 | ||
| Hardware: | Other | ||
| OS: | Linux | ||
|
Description
Paul Evans
2019-09-07 04:32:17 AEST
I think you have two options here: First, you can explicitly shut down multiplexed sessions that have stalled underlying TCP connection. E.g. I use for x in ~/.ssh/ctl-* ; do test -r "$x" && ssh -Fnone -Ostop -oControlPath="$x" dummy ; done Second, you can set a protocol-level health check to automatically kill unresponsive sessions. E.g. adding the following to ~/.ssh/config ServerAliveInterval 2m ServerAliveCountMax 3 Will terminate any unresponsive connection after six minutes. |