January 12th, 2004, 08:55 AM
Strange SSH connection forwarding tunnel to another box..
I'm trying to basically do something like this:
I want to go from my web browser on my box, and set up a tunnel so that I can connect to the remote router web config through the ssh port.
First? Is this possible? I've forwarded connections to the remote box, but not to another box on the remote network.
The Router has port 22 forwarding to the remote box IP, but not 80.
I tried running netcat on the "Remote Box" and forwarding it to http://192.168.2.1:80, but whenever the ssh connection would attempt it would fail.
Any help out there?
My box ==> Web ==> Router ==> Remote Box
January 12th, 2004, 11:34 PM
Will you have a secure connection between each and every box?
Remote Box => rb
Router => r
My Box => mb
Forward port 22 on rb to port 8022 on r
Forward port 9022 on mb to port 8022 on r
I have not tested these number but see if this accomplishes what you need.
yes you can forward ports to a remote box via ssh.
January 13th, 2004, 07:06 AM
A secure connection betwen each and every box? It isn't required, just the one from my box to the remote box. The only port I have forwarding to that box is 22 and 540 (uucp)
January 13th, 2004, 08:34 AM
If I understand your diagram correctly you are wanting to log in to the Remote Box correct? You can either `hop` and log in from each box or you can forward the ports so that you can log in once.
Last edited by victorpendleton; January 13th, 2004 at 08:39 AM.
January 13th, 2004, 08:38 AM
Yes, but I can't ssh from the remote box to the router. It is only accessible through a web interface.
January 13th, 2004, 08:45 AM
Are you sshing into the router or into the remote box?
January 13th, 2004, 11:15 AM
I'm sshing into the remote box
January 13th, 2004, 10:31 PM
If the application you are using has a web interface or a port that it listens to for web requests you can forward that port to your localhost.
-L 80:127.0.0.1:80 ip_remote_host