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: [email protected]
Reporter: [email protected]
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@remote
Allocated port 12345 for remote forward to 127.0.0.1:56789
12345
> ssh -Ocancel -R 0:127.0.0.1:56789 user@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@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.
_______________________________________________
openssh-bugs mailing list
[email protected]
https://lists.mindrot.org/mailman/listinfo/openssh-bugs