LinuxQuestions.org
Visit the LQ Articles and Editorials section
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 07-25-2006, 01:18 PM   #1
jcombs_31
Member
 
Registered: Dec 2004
Distribution: Slackware
Posts: 104

Rep: Reputation: 15
ssh port forwarding problem.


I've had success setting up a tunnel using Putty with windows to my linux box. I'm trying to do the same without putty in a linux shell. Everything works fine, except for one small detail. I learned that when i set up the tunnel, I had to use the fully qualified name to get it working. For example, instead of just connecting to domain.com, I would have to connect using machine.domain.com and the tunnel works perfect.

But when using ssh from a shell, I can't use machine.domain.com and the tunnel won't work correctly. The tunnel is used to connect to a squid proxy. Any ideas on why this would be or how to fix it?

I'm connecting like this...

ssh -L localport:localhost:remoteport user@domain.com
 
Old 07-25-2006, 03:09 PM   #2
msound
Member
 
Registered: Jun 2003
Location: SoCal
Distribution: CentOS
Posts: 465

Rep: Reputation: 30
can you just use the linux machine ip address? does it have a static ip or does it change?
 
Old 07-26-2006, 06:22 AM   #3
jcombs_31
Member
 
Registered: Dec 2004
Distribution: Slackware
Posts: 104

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by msound
can you just use the linux machine ip address? does it have a static ip or does it change?
It's gonna resolve the same, the IP address is going to hit my router and then route to my linux box based on the port forwarding.
 
  


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 wwnexc Linux - Networking 4 09-29-2005 01:26 AM
SSH Port forwarding WRSpithead Linux - Networking 1 04-18-2005 04:09 AM
Port forwarding for ssh Adriaan Linux - Networking 1 03-08-2004 09:11 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


All times are GMT -5. The time now is 05:33 AM.

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