LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-04-2005, 08:48 PM   #1
DDD26
LQ Newbie
 
Registered: Dec 2004
Location: CA
Distribution: Red Hat 9.0
Posts: 13

Rep: Reputation: 0
Telnet to Redhat fails


I am trying to connect from one Windows XP running computer to Redhat workstation. I do the following:

1. Check IP address of the linux machine (e.g. whatismyipaddress.com);
2. Type

telnet "IPaddress" (where IPaddress is the IP address of the linux machine)

on the windows machine and I get an error "connection timed out"

I tried connecting to another computer running IRIX with the same method and it works fine. Could someone help me out?
 
Old 03-04-2005, 09:14 PM   #2
xowl
Member
 
Registered: Jan 2005
Distribution: Slackware current (and others)
Posts: 188

Rep: Reputation: 30
1) both pcs have an IP

2) is the windows machine in the same subnet
(by subnet I mean something like 192.168.1.1 192.168.1.10)
 
Old 03-04-2005, 09:18 PM   #3
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 49
There are any number of problems that you may be experiencing, but here are the 2 most likely -

1) If the redhat box is behind a firewall or router, and you go to whatismyipaddress.com, you are not going to get the redhat box's "true" IP address, you are getting the IP of the router or firewall.

2) Telnet is junk. Telnet sends unencrypted passwords accross the net, meaning anyone running a packet sniffer will get your username and password in 1 attempt. Red Hat 9 is ancient by linux standards, but even from when it came out, I believe ssh (similiar to telnet, but it encrypts the data) was the default way to access through the net.

It worked with the irix box probably because that box was running a real world IP, so it can be reached from anywhere. If your redhat box is on your lan, you need to know its LOCAL Ip (192.168.x.x, 172.Y.x.x (Y<=16), 169.254.x.x, or 10.x.x.x), and you can telnet to it that way. Use SSH though, it is infinitely more safe.

You can find the IP address on the redhat box much more effectively by doing ifconfig eth0 as full root (su -), and you will be able to connect to that.

Also, seriously consider upgrading that redhat box if you have control of it, that is so old it has missed 3 major versions. It is like finding somebody still using Windows 95 nowadays.

Peace,
JimBass

Last edited by JimBass; 03-04-2005 at 09:21 PM.
 
Old 03-04-2005, 11:25 PM   #4
DDD25
LQ Newbie
 
Registered: Jul 2004
Posts: 7

Rep: Reputation: 0
Quote:
Originally posted by xowl
1) both pcs have an IP

2) is the windows machine in the same subnet
(by subnet I mean something like 192.168.1.1 192.168.1.10)
No they have different subnet.
 
Old 03-04-2005, 11:26 PM   #5
DDD25
LQ Newbie
 
Registered: Jul 2004
Posts: 7

Rep: Reputation: 0
Quote:
Originally posted by JimBass
There are any number of problems that you may be experiencing, but here are the 2 most likely -

1) If the redhat box is behind a firewall or router, and you go to whatismyipaddress.com, you are not going to get the redhat box's "true" IP address, you are getting the IP of the router or firewall.

2) Telnet is junk. Telnet sends unencrypted passwords accross the net, meaning anyone running a packet sniffer will get your username and password in 1 attempt. Red Hat 9 is ancient by linux standards, but even from when it came out, I believe ssh (similiar to telnet, but it encrypts the data) was the default way to access through the net.

It worked with the irix box probably because that box was running a real world IP, so it can be reached from anywhere. If your redhat box is on your lan, you need to know its LOCAL Ip (192.168.x.x, 172.Y.x.x (Y<=16), 169.254.x.x, or 10.x.x.x), and you can telnet to it that way. Use SSH though, it is infinitely more safe.

You can find the IP address on the redhat box much more effectively by doing ifconfig eth0 as full root (su -), and you will be able to connect to that.

Also, seriously consider upgrading that redhat box if you have control of it, that is so old it has missed 3 major versions. It is like finding somebody still using Windows 95 nowadays.

Peace,
JimBass
THanks. I will try to check that tomorrow.
 
Old 03-05-2005, 08:37 AM   #6
xowl
Member
 
Registered: Jan 2005
Distribution: Slackware current (and others)
Posts: 188

Rep: Reputation: 30
Ok, if they arent in the same subnet U must configure a router/gateway in both machines, so U can ping each other
 
Old 03-05-2005, 04:10 PM   #7
DDD25
LQ Newbie
 
Registered: Jul 2004
Posts: 7

Rep: Reputation: 0
I obtained the IP using the command you wrote and tried connecting to that IP. I couldn't do it.

I have also tried to connect from another computer which is on the same subnet and I got the same error.

Any suggestions?
 
Old 03-05-2005, 04:41 PM   #8
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 49
Connnect to the IP of the redhat box from your windows box on the same subnet, but NOT telnet, use SSH. Chances are fairly good that the telnet server on the redhat box isn't on, because it is a security risk. Putty is a free app for window$ that can use ssh.

Peace,
JimBass
 
Old 03-05-2005, 05:38 PM   #9
DDD25
LQ Newbie
 
Registered: Jul 2004
Posts: 7

Rep: Reputation: 0
I tried using SSH and I got: "The server is unreachable".
 
Old 03-05-2005, 06:52 PM   #10
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 49
Then on the redhat box, as root, do
Code:
/etc/init.d/sshd start
That should fire up the ssh deamon. If you still can't get in, then you should post the full IP info about the boxes involved, so we can look at problems in that area. If you are on the same LAN as the server, a firewall shouldn't be a problem, but it may be.

Peace,
JimBass
 
  


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
Telnet RedHat homerz Linux - General 2 12-14-2003 03:47 PM
telnet 110 fails from remote machine mvarun Linux - Networking 3 11-29-2003 08:21 AM
Can't see why telnet-stye software fails to connect from logs Izzard Linux - Networking 2 10-27-2003 04:01 AM
Redhat + Telnet oostevo Linux - General 6 06-02-2002 09:32 AM
Redhat 7.1 and Telnet russnem Linux - Networking 1 07-31-2001 06:00 PM


All times are GMT -5. The time now is 10:30 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration