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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
07-29-2003, 06:52 AM
|
#1
|
Member
Registered: Mar 2003
Posts: 58
Rep:
|
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,
|
|
|
07-29-2003, 07:59 AM
|
#2
|
Member
Registered: Mar 2003
Distribution: Fedora, Mac OSX
Posts: 362
Rep:
|
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.
|
|
|
07-29-2003, 08:44 AM
|
#3
|
LQ Newbie
Registered: Dec 2001
Location: London
Distribution: Debian Woody
Posts: 17
Rep:
|
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.
|
|
|
07-29-2003, 09:00 AM
|
#4
|
Member
Registered: Mar 2003
Posts: 58
Original Poster
Rep:
|
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,
|
|
|
07-29-2003, 09:20 AM
|
#5
|
Member
Registered: Mar 2003
Posts: 58
Original Poster
Rep:
|
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,
|
|
|
07-29-2003, 12:35 PM
|
#6
|
LQ Newbie
Registered: Dec 2001
Location: London
Distribution: Debian Woody
Posts: 17
Rep:
|
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.
|
|
|
07-29-2003, 12:49 PM
|
#7
|
Moderator
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047
Rep:
|
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?
|
|
|
07-29-2003, 07:52 PM
|
#8
|
Member
Registered: Jul 2003
Location: Jette, Brussels Hoofstedelijk Gewest
Distribution: Debian sid, RedHat 9, Suse 8.2
Posts: 446
Rep:
|
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
|
|
|
All times are GMT -5. The time now is 08:59 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|