|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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. Code:
My box ==> Web ==> Router ==> Remote Box
^ |
\_HTTP__/
Any help out there? |
|
#2
|
|||
|
|||
|
Will you have a secure connection between each and every box?
Example: 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. |
|
#3
|
|||
|
|||
|
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)
|
|
#4
|
|||
|
|||
|
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.
__________________
El éxito consiste en una serie de pequeñas victorias día a día MySQL, MS SQL, MS ACCESS, Oracle Database Manager - http://victorpendleton.net/products/psdviewer.html Last edited by victorpendleton : January 13th, 2004 at 08:39 AM. |
|
#5
|
|||
|
|||
|
Yes, but I can't ssh from the remote box to the router. It is only accessible through a web interface.
|
|
#6
|
|||
|
|||
|
Are you sshing into the router or into the remote box?
|
|
#7
|
|||
|
|||
|
I'm sshing into the remote box
|
|
#8
|
|||
|
|||
|
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.
For example -L 80:127.0.0.1:80 ip_remote_host |
![]() |
| Viewing: Dev Shed Forums > System Administration > Networking Help > Strange SSH connection forwarding tunnel to another box.. |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|