Created attachment 1618 [details] Change made to line 1123 of serverloop.c In 5.2p1 only root can login using remote forwarding with port 0 and get a port dynamically assigned. Non root users get an error like this: debug1: Remote: Server has disabled port forwarding. debug1: remote forward failure for: listen 0, connect localhost:8080 Warning: remote port forwarding failed for listen port 0 debug1: All remote forwarding requests processed when running: ssh -v -R 0:localhost:8080 -N gavin@xxxxx.com whereas the port is dynamically assigned as expected when the user is root ssh -v -R 0:localhost:8080 -N root@xxxxx.com debug1: remote forward success for: listen 0, connect localhost:80 Allocated port 49189 for remote forward to localhost:80 debug1: All remote forwarding requests processed I fixed this in line 1123 serverloop.c. Hopefully this doesn't break something important. Gavin
Fix applied. This will be in OpenSSH 5.3 - thanks!
Mass move of RESOLVED bugs to CLOSED now that 5.3 is out.