LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-29-2003, 06:52 AM   #1
tinaa
Member
 
Registered: Mar 2003
Posts: 58

Rep: Reputation: 15
Question Ssh Tunnel


Hello All,

I have to setup a tunnel from My Redhat 7.3 to Redhat 9.0 box. I am a Newbie to tunnel. I have compile somting called openvpn and also got some info from google and the forums.But everything seems to be out of my head.

Can anyone please put me on path of HOWTO accomplish this ?

My Redhat 7.3 server has a Static Ip and the Redhat 9 box is on DSL connection.

Any Help will be Appreciated.

Regards,
 
Old 07-29-2003, 07:59 AM   #2
bentz
Member
 
Registered: Mar 2003
Distribution: Fedora, Mac OSX
Posts: 362

Rep: Reputation: 30
A tunnel will establish an encrypted path between the two RedHat machines. Ensure that this is what you are trying to accomplish. Depending on what network traffic you want to tunnel, you will be using Local or Remote port forwarding to utilize the tunnel.

To help you further, please tell us all the following four things:
0. Which machine is the SSH server?
1. Which machine is the SSH client?
2. Which machine has the network service that you want to utilize?
3. Which machine will be the client to the network service that you want to utilize?

An SSH tunnel is always established by the SSH client. If the network resource (like POP3, IMAP, HTTP, SMTP, X11, etc.) is on the client side, you will use the '-R' switch with 'ssh' to start a new listener on the server end of the tunnel to be used to connect to the resource on the client side. Or, if the network resource is on the server side, you will use the '-L' switch with 'ssh' to start a new listener on the client end of the tunnel to be used to connect to the resource on the server side.
 
Old 07-29-2003, 08:44 AM   #3
bradut
LQ Newbie
 
Registered: Dec 2001
Location: London
Distribution: Debian Woody
Posts: 17

Rep: Reputation: 0
more info

is the machine directly connected to the net or do you go via a router ? On the router you need to open up port 22 (the ssh port)
On the target machine you could install openSSH which contains the server sshd.
As a client you can use a variety of software, depending on your preference. I use putty under windows to connect to my machine at home from work.
 
Old 07-29-2003, 09:00 AM   #4
tinaa
Member
 
Registered: Mar 2003
Posts: 58

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by bentz
[B]A tunnel will establish an encrypted path between the two RedHat machines. Ensure that this is what you are trying to accomplish. Depending on what network traffic you want to tunnel, you will be using Local or Remote port forwarding to utilize the tunnel.

To help you further, please tell us all the following four things:
0. Which machine is the SSH server?
==> Redhat 7.3

1. Which machine is the SSH client?
Redhat 9.0

2. Which machine has the network service that you want to utilize?
3. Which machine will be the client to the network service that you want to utilize?

The redhat 7.3 is a Webhosting server with a static ip and Redhat 9 is on a DSL IP.
So please tell what you suggest. What i want it that the Redhat 9 machine will start the tunnel and connect to redhat 7.3 machine.

Thank you very much for the info.

Regards,
 
Old 07-29-2003, 09:20 AM   #5
tinaa
Member
 
Registered: Mar 2003
Posts: 58

Original Poster
Rep: Reputation: 15
Re: more info

Quote:
Originally posted by bradut
is the machine directly connected to the net or do you go via a router ? On the router you need to open up port 22 (the ssh port)
On the target machine you could install openSSH which contains the server sshd.
As a client you can use a variety of software, depending on your preference. I use putty under windows to connect to my machine at home from work.
The port 22 is open through the firewall on Redhat 9 machine which is on DSL and the Redhat 7.3 is directly connected to the net with a static ip.

Regards,
 
Old 07-29-2003, 12:35 PM   #6
bradut
LQ Newbie
 
Registered: Dec 2001
Location: London
Distribution: Debian Woody
Posts: 17

Rep: Reputation: 0
I've said this in a different thread. I am quite a newbie myself and don't know enough to really give competent advice.
On my setup i have made the ssh server pc a dmz host on the router and I also opened the port 22 on the router with redirection towards the port 22 on the private ip of the ssh server. It seems to work ok.
 
Old 07-29-2003, 12:49 PM   #7
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Tell me if this is a stupid question but what are you trying to do?
1) ssh to the other machine to get a secure shell?
2) encrypt traffic on a certain port over an ssh tunnel?
 
Old 07-29-2003, 07:52 PM   #8
Corin
Member
 
Registered: Jul 2003
Location: Jette, Brussels Hoofstedelijk Gewest
Distribution: Debian sid, RedHat 9, Suse 8.2
Posts: 446

Rep: Reputation: 31
AS to what Tinaa is trying to do is given in the clue "openvpn"

Perhaps this would be a useful place for Tinaa to do some reading?

http://openvpn.sourceforge.net/howto.html

which gives a most excellent step by step guide on setting up
a VPN between two machines, including

Managing startup and shutdown of multiple OpenVPN tunnels
 
  


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration