[Bug 2219] New: Can't use -Ocancel on forward of dynamically allocated remote port

bugzilla-daemon at mindrot.org bugzilla-daemon at mindrot.org
Tue Apr 1 14:18:20 EST 2014


https://bugzilla.mindrot.org/show_bug.cgi?id=2219

            Bug ID: 2219
           Summary: Can't use -Ocancel on forward of dynamically allocated
                    remote port
           Product: Portable OpenSSH
           Version: 6.5p1
          Hardware: Other
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P5
         Component: ssh
          Assignee: unassigned-bugs at mindrot.org
          Reporter: quantheory at gmail.com

If you are using a multiplexed connection, you can request a
dynamically allocated remote port forward, but then there is no way to
cancel it afterward.

Example:

> ssh -Oforward -R 0:127.0.0.1:56789 user at remote
Allocated port 12345 for remote forward to 127.0.0.1:56789
12345
> ssh -Ocancel -R 0:127.0.0.1:56789 user at remote
mux_client_forward: forwarding request failed: port not in permitted
opens
muxclient: master cancel forward request failed
> ssh -Ocancel -R 12345:127.0.0.1:56789 user at remote
mux_client_forward: forwarding request failed: port not forwarded
muxclient: master cancel forward request failed

At least the second one should work, but OpenSSH doesn't check the
cancel request against the allocated port in this case.

-- 
You are receiving this mail because:
You are watching the assignee of the bug.


More information about the openssh-bugs mailing list