Right now, if I add a port forward to a multiplexed ssh shell session, and I then exit the shell session, the port forward disappears. Would it be possible to have the port forward stay around while it's in use? E.g. until there's been no traffic forwarded in a configurable number of seconds?
I think ControlPersist (added in OpenSSH 5.7) does what you want.
It sounds like it should, Damien, but it doesn't. I'm using the Syncthing UI across the port forward, and there is constant traffic, but after the 30s I configured, the connection goes down. I'll try to come up with a reproducible test case…
Of coursw, now that I am trying to reproduce the problem, it's all working as you say, Damien. This is ridiculous, because I witnessed this not working a couple of times, or else would not have filed this bug report. Anyway, closing for now until I can get a bit closer to the problem.
closing resolved bugs as of 8.6p1 release