Bug 3060 - Keep multiplexer around while port forwardings are being used
Summary: Keep multiplexer around while port forwardings are being used
Status: CLOSED WORKSFORME
Alias: None
Product: Portable OpenSSH
Classification: Unclassified
Component: ssh (show other bugs)
Version: 8.0p1
Hardware: Other Other
: P5 enhancement
Assignee: Assigned to nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-08-26 07:38 AEST by martin ➬
Modified: 2021-04-23 15:11 AEST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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