LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 08-14-2006, 08:46 AM   #1
hcz
LQ Newbie
 
Registered: Jul 2006
Posts: 8

Rep: Reputation: 0
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 hozec@135.xxx.234.yyy -L 8081:135.xxx.234.yyy:8080
Password:
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 debby.xxx.xxx.fi
hozec@machi:~$ channel 3: open failed: connect failed: Connection timed out

hozec@machi:~$

Thanks already.

Last edited by david_ross; 08-14-2006 at 04:31 PM.
 
Old 08-14-2006, 04:31 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 64
If it is only bound to the loopback then you'll need to use:
ssh hozec@135.xxx.234.yyy -L 8081:127.0.0.1:8080

I've also obscured your IP in the post just for security.
 
Old 08-15-2006, 01:53 AM   #3
hcz
LQ Newbie
 
Registered: Jul 2006
Posts: 8

Original Poster
Rep: Reputation: 0
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?
 
Old 08-15-2006, 12:59 PM   #4
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 64
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ssh port forwarding simpl Linux - Software 3 07-20-2006 01:41 AM
SSH Port Forwarding wwnexc Linux - Networking 4 09-29-2005 01:26 AM
Ssh port forwarding? J_Szucs Linux - Networking 1 10-29-2003 04:42 AM
ssh, and port forwarding Tricky Linux - Networking 3 01-06-2003 07:50 PM
SSH port forwarding tarballedtux Linux - Networking 2 05-29-2002 07:16 PM


All times are GMT -5. The time now is 07:00 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration