Connecting Linux Servers 40 Miles Apart: What's the Simplest Way?

  • Thread starter Thread starter Omid
  • Start date Start date
  • Tags Tags
    Linux Machines
AI Thread Summary
To connect two Linux servers running Redhat 9.0 that are 40 miles apart, SSH (Secure Shell) is a recommended method for remote access. It is likely already installed, and can be activated by switching to the root user and executing the command /etc/init.d/sshd start. It is essential to ensure that SSH traffic is allowed through the firewall. Since the servers are not connected to the Internet, establishing a TCP/IP connection via a PPP (Point-to-Point Protocol) setup is necessary, which can be achieved using pppd and sshd. For this connection, client/server programs are needed to facilitate communication over 56k modems using a phone line. Various online resources and guides are available for configuring dial-in servers and setting up PPP connections, allowing for either DHCP or static IP assignment based on user preferences.
Omid
Messages
181
Reaction score
0
Hi,
We have two Linux servers (Redhat 9.0) 40 miles apart. We want to connect them to each other so that we can change our database settings and PHP files on them. In windows we just dial one of them from the other one and use a remote desktop. What should we do when we are using linux?
 
Computer science news on Phys.org
Ever heard of SSH? It is probably already installed. All you have to do is start the server by su'ing into root and then running the following command: /etc/init.d/sshd start

Make sure you foward ssh to that computer on the firewall.
 
dduardo said:
Ever heard of SSH? It is probably already installed. All you have to do is start the server by su'ing into root and then running the following command: /etc/init.d/sshd start

Make sure you foward ssh to that computer on the firewall.

Yeah, but don't you think we must first make a TCP/IP connection between those machines?
None of them are connected to the Internet. So we have to place a PPP (or something like that) connection between them.
I need a client/server deamon to make the connection via 56k modems and a phone line.
That's what I need. Please give me the name of such client/server programs. And the way we can make the PPP connection.
Thanks
 
Then you need pppd and sshd.
 
Somebody told me about Portslave. Is it neccesary to use it?
dduardo, that would be great if you could give me one of your majical links. Like the one you gave me last week, the page about configuring Samba and SWAT. I need a easy "How to do", even for Debian if you think it's easier for a novice.
Thanks a lot.
 
There are a bunch of guides on the internet for Dial-in Servers. You just have to look:

http://ct.radiology.uiowa.edu/~jiangm/software-docs/ppp-dialin-server/
http://linuxgazette.net/issue38/gentry.html

You can make this as difficuilt or as easy as you want. You can setup DHCP to give out IPs or you can just assign static IPs. You can have fancy or simple authentication. It all depends on your needs.
 
Last edited by a moderator:
let me give it a go. Offcourse I'm trying to find the simplest way.
Thanks a lot.
 
Back
Top