Bug 3060

Summary: Keep multiplexer around while port forwardings are being used
Product: Portable OpenSSH Reporter: martin ➬ <bugzilla.mindrot.org>
Component: sshAssignee: Assigned to nobody <unassigned-bugs>
Status: CLOSED WORKSFORME    
Severity: enhancement CC: djm
Priority: P5    
Version: 8.0p1   
Hardware: Other   
OS: Other   

Description martin ➬ 2019-08-26 07:38:24 AEST
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?
Comment 1 Damien Miller 2019-08-26 21:25:17 AEST
I think ControlPersist (added in OpenSSH 5.7) does what you want.
Comment 2 martin ➬ 2019-08-26 21:53:40 AEST
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…
Comment 3 martin ➬ 2019-08-27 11:52:49 AEST
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.
Comment 4 Damien Miller 2021-04-23 15:11:00 AEST
closing resolved bugs as of 8.6p1 release