Removing port forwardings programmatically on a ControlMaster SSH session
Posted
by
aef
on Server Fault
See other posts from Server Fault
or by aef
Published on 2012-12-12T03:13:52Z
Indexed on
2012/12/12
5:06 UTC
Read the original article
Hit count: 451
Quite a while ago I got an answer telling me how to add a port-forwarding on a running SSH ControlMaster process. To know that helps a lot, but I'm still missing a way to remove such a port forwarding after I don't need that anymore.
As far as I know, you can do that through the internal command key sequence on normal connections, this seems to be disabled for ControlMaster clients. Even if that would be possible I would need a solution which I can automatize with scripts, which is surely not so easy this way.
Is there a way to do it? And is it easily automatizable?
© Server Fault or respective owner