Folks, I am using 2.9p2, but Markus Friedl said to submit this, so I didn't bother upgrading and re-checking the problem. When you ssh -R, and the remote port that you are trying to forward is already forwarded, the forwarding that you request with the -R option will fail, but the only way to find this out is to look at the security logs on the remote machine, where sshd reports that the port is already in use. ssh -v -v -v -R does not mention anything other than: debug1: Connections to remote port 2222 forwarded to local address strad:1111 while the logs on the remote machine contain: Apr 11 16:21:44 odin sshd[3808]: Accepted publickey for russr from ###.###.##.# port 50191 ssh2 Apr 11 16:21:44 odin sshd[3808]: error: bind: Address already in use Apr 11 16:21:44 odin sshd[3808]: error: channel_request_forwarding: cannot listen to port: 2222 It would make debugging connections a lot easier if ssh -v -R would give you a warning that the port forwarding you requested had failed. Thanks, R.
Created attachment 73 [details] please try this
i'll look into this. check the attached patch.
*** Bug 43 has been marked as a duplicate of this bug. ***
patch applied.
Mass change of RESOLVED bugs to CLOSED