Visit the LQ Articles and Editorials section
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


Search this Thread
Old 08-25-2004, 03:21 PM   #1
Registered: Aug 2004
Location: US
Distribution: Fedora, FBSD, Solaris
Posts: 46

Rep: Reputation: 15
Question ssh tunnel


I've seen some tutorials on using an ssh tunnel like this:

[my box] *>**encrypted data **>**>[his box]

and then I telnet(or whatever) to my box, and it gets to his box. However, I'd like to connect to his box, and have it forward to my box.

Let me explain. My box is behind a firewall nat'ed, and thus cannot receive connections. I'd like to make a tunnel to a friends box. Then, If I telnet to the friends box, i can reach my box. (since my box can ONLY make outbound connections.).



-Jack C
jack {at}
www [dot] crepinc [dot] com
Old 08-25-2004, 04:30 PM   #2
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 64
You can use:

Then you can telnet to port 10023 on his server. Make sure you enable "GatewayPorts" in the remote sshd's config file.

If you re telnetting to his box over the internet though you may want to use ssh instead.
Old 08-25-2004, 09:24 PM   #3
Registered: Aug 2004
Location: US
Distribution: Fedora, FBSD, Solaris
Posts: 46

Original Poster
Rep: Reputation: 15


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 Tunnel - need some help on this MeridianRebel Linux - Networking 2 08-11-2005 03:10 PM
I need to tunnel X via ssh... is there a command? Thaidog Linux - Newbie 1 09-29-2004 02:58 PM
ssh tunnel TroelsSmit Linux - Software 2 04-30-2004 04:30 PM
Ssh Tunnel tinaa Linux - Software 7 07-29-2003 08:52 PM
SSH tunnel? tarballedtux Linux - Networking 3 04-09-2002 04:52 PM

All times are GMT -5. The time now is 12:39 PM.

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