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 |
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.
|
 |
02-03-2005, 05:11 AM
|
#1
|
LQ Newbie
Registered: Feb 2005
Posts: 5
Rep:
|
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.
|
|
|
02-03-2005, 05:51 AM
|
#2
|
Senior Member
Registered: Jan 2004
Location: Slovenia
Distribution: Slackware 10.1, SLAX to the MAX :)
Posts: 1,040
Rep:
|
You probably don't have your firewall set to alloqw connections on that port. Check that.
|
|
|
02-03-2005, 06:02 AM
|
#3
|
LQ Newbie
Registered: Feb 2005
Posts: 5
Original Poster
Rep:
|
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?
|
|
|
02-03-2005, 06:46 AM
|
#4
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
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.
|
|
|
02-03-2005, 07:10 AM
|
#5
|
LQ Newbie
Registered: Feb 2005
Posts: 5
Original Poster
Rep:
|
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?
|
|
|
02-03-2005, 07:52 AM
|
#6
|
LQ Newbie
Registered: Feb 2005
Posts: 5
Original Poster
Rep:
|
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.
|
|
|
02-03-2005, 08:09 AM
|
#7
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
well if the telnet server is running via xinetd, then what does the /etc/xinetd.d/telnetd file say?
|
|
|
02-03-2005, 08:25 AM
|
#8
|
LQ Newbie
Registered: Feb 2005
Posts: 5
Original Poster
Rep:
|
>> 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?
|
|
|
All times are GMT -5. The time now is 07:10 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
|
|