I've got OpenSSH_6.2 from the latest snapshot and would like to cancel
remote forwarding without closing the existing session. I seem to be
missing something with the escape sequence ~CKR
If I start remote forwarding like this:
ssh -R 9000:localhost:80 192.0.43.10
The remote machine can access port 80 via its port 9000. And if I use the
following escape sequence,
~C
KR9000
ssh reports having canceled the forwarding:
ssh> -KL9000
Canceled forwarding.
However, the remote machine is still able to use the forwarded port until
the connection is finally closed. The same syntax seems to shutdown
regular (-L) forwarded ports, just not for reverse (-R) forwarding. What
am I missing?
Regards,
/Lars