Problem with SSH local port forwarding
I want to forward the port 1812 running on server1 to server2. So I issue following command from server2
[root@server2 ~]# ssh -g -L 1812:server1:1812 server1 root@server1's password: bind: Address already in use Last login: Mon Jul 23 14:35:19 2007 from server2 [root@server1 ~]# when I use above command without using -g option then it works fine. But I want the forwarded port to be used by other clients as well. I have made sure that there is no service running on Server2 on port no. 1812. I have tried with many other ports as well. Can anybody suggest me what to do to enable other clients to use forwarded port. |
Hi suhas! I can reproduce this on my system; and the output from strace indicates that ssh is attempting to bind to both IPv6 and IPv4 addresses:
Code:
$ strace -f -- ssh -g -L 12345:localhost:80 server2 [root@server2 ~]# ssh -4 -g -L 1812:server2:1812 server1 |
Oh Yess!!!!! It really worked man!!! Now every thing is working fine.....
I would like to know that which command's output have you posted above.. which helped you to figure out the problem? Once again, Thanks a lot Mallux.... This is a great forum!!!!!! |
Quote:
Quote:
|
All times are GMT -5. The time now is 09:04 AM. |