LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 02-03-2005, 05:11 AM   #1
oPi
LQ Newbie
 
Registered: Feb 2005
Posts: 5

Rep: Reputation: 0
Telnet on LAN not working


I have just installed Fedora 3 and then followed the tutorial at:
linuxhomenetworking.com (chapter 16) to install the Telnet-server.

I can telnet to 127.0.0.1 using the command "telnet 127.0.0.1" from the actual linux PC. (i.e the PC can telnet to itself - the localhost).

But when I try to telnet to the linux PC from another PC on the LAN using the command "telnet 192.168.0.20" I get the error:

Connecting To 192.168.0.20...Could not open connection to the host, on port 23: Connect failed

The other PC's on the lan have ip address 192.168.0.30 & 192.168.0.4. I can ping 192.168.0.20 from these PCs.

Does anyone have any suggestions on how I can fix the fault?

Thanks.
 
Old 02-03-2005, 05:51 AM   #2
marghorp
Senior Member
 
Registered: Jan 2004
Location: Slovenia
Distribution: Slackware 10.1, SLAX to the MAX :)
Posts: 1,040

Rep: Reputation: 45
You probably don't have your firewall set to alloqw connections on that port. Check that.
 
Old 02-03-2005, 06:02 AM   #3
oPi
LQ Newbie
 
Registered: Feb 2005
Posts: 5

Original Poster
Rep: Reputation: 0
I don't have the firewall turned on on my 192.168.0.30 or 192.168.0.4 windows PCs .

Are you refering to some kind of default firewall on my linux PC (192.168.0.20). I haven't deliberately turned on a firewall on my linux PC. If it turns on by default (after a standard SERVER install), how do you disable it?
 
Old 02-03-2005, 06:46 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
don't use telnet, use ssh. it's possible that the telnet server is defaulting to only allow local connections as it's so insecure compared to the wonderful ssh.
 
Old 02-03-2005, 07:10 AM   #5
oPi
LQ Newbie
 
Registered: Feb 2005
Posts: 5

Original Poster
Rep: Reputation: 0
I agree that ssh is more secure, and is encrypted and is far superior to telnet, and all that, but this is a test/play PC and I am determined to get TELNET to work. Once I've solved the TELNET mystery I will then go on and try ssh, etc. I've already had a lot of success playing with the Apache web server, but this TELNET thing has really got me foxed.

I've tried all the obvious things like checking that disable=no in /etc/xinetd.d/telnet
and even tried restarting the service inetd with: "service xinetd restart"

I can't see what I could possibly be doing wrong.

Are there any experts out there with any suggestions on what I might be doing wrong?
 
Old 02-03-2005, 07:52 AM   #6
oPi
LQ Newbie
 
Registered: Feb 2005
Posts: 5

Original Poster
Rep: Reputation: 0
OK, I just started sshd using the command: /sbin/chkconfig sshd on

I then started my ssh client on my windows PC and it worked fine. I can now talk to my linux PC remotely (woo hoo). However, this doesn't answer what's going wrong with my telnet server.

Please post suggestions here at your next earliest convenience. Thanks

Last edited by oPi; 02-03-2005 at 07:53 AM.
 
Old 02-03-2005, 08:09 AM   #7
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
well if the telnet server is running via xinetd, then what does the /etc/xinetd.d/telnetd file say?
 
Old 02-03-2005, 08:25 AM   #8
oPi
LQ Newbie
 
Registered: Feb 2005
Posts: 5

Original Poster
Rep: Reputation: 0
>> well if the telnet server is running via xinetd,
>> then what does the /etc/xinetd.d/telnetd file say?

Hmmm, I'm too much of a newbie to know exactly what that question means. I only mentioned that I've checked that disable=no in /etc/xinetd.d/telnet , because another site mentioned it.

I don't have a telnetd file in /etc/xinetd.d/ as you suggest. I do however have a telnet file in that directory, and it looks like this:

[root@servo xinetd.d]# more telnet
# default: on
# description: The telnet server serves telnet sessions; it uses \
# unencrypted username/password pairs for authentication.
service telnet
{
disable = no
flags = REUSE
socket_type = stream
wait = no
user = root
server = /usr/sbin/in.telnetd
log_on_failure += USERID
}

Does that give you any clue about my TELNET problems?
 
  


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 and lan? hellonoam Linux - Networking 6 11-04-2004 04:48 AM
telnet through lan celadoreuk Linux - Networking 4 10-04-2004 02:31 PM
No telnet from LAN into RH7.1 box mcbleyerveld Linux - Networking 4 08-27-2004 09:42 AM
telnet is not working JackDante Linux - Newbie 16 08-04-2004 03:48 AM
How do I Telnet (via the web) to a linux box on a Lan.. Simon W Linux - Networking 6 04-15-2002 09:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:10 AM.

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