-   Linux - Networking (
-   -   SSH port forwarding (

hcz 08-14-2006 09:46 AM

SSH port forwarding
I have 2 computers running Debian linux. I'm trying to set up ssh port forwarding so that I didn't have to run firefox over X because it is so damn slow. I am able to connect with ssh to the server which is running Tomcat. At the server I can run firefox and browse http://localhost:8080 correctly. How is it possible that when I do port forwarding, my client computer starts to load the page but it never finds it? Finally it times out.

debby ~ 20 % ssh -L
Linux machi 2.4.27-2-686 #1 Wed Aug 17 10:34:09 UTC 2005 i686 GNU/Linux

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.

Last login: Mon Aug 14 16:20:51 2006 from
hozec@machi:~$ channel 3: open failed: connect failed: Connection timed out


Thanks already.

david_ross 08-14-2006 05:31 PM

If it is only bound to the loopback then you'll need to use:
ssh -L 8081:

I've also obscured your IP in the post just for security.

hcz 08-15-2006 02:53 AM

Thanks for reply,

Now I see the webpage but It is still not working properly. There should be xforms user interface and it doesn't show all the xforms functions right. And if I do a change in the page, it doesn't post it to the servlet as it should. This means I can not use the user interface at all.

Should I also loop something back to the server?

david_ross 08-15-2006 01:59 PM

I'd take a look at the source and see if it is referncing port 8080 specifically. You might want to try using 8080 on your local machine if it isn't in use by anything else.

All times are GMT -5. The time now is 08:57 PM.