LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-20-2002, 08:23 PM   #1
Kaa
LQ Newbie
 
Registered: Feb 2002
Distribution: RedHat 7.2
Posts: 5

Rep: Reputation: 0
Telnet problems


Hi,

I have installed RH 7.2 and put it on my local network behind a cable modem/router.

I cannot telnet to the Linux box from another machine on the local net.

I edited the telnet file in /etc/xinetd.d. I allowed only machines from my local domain with the following line:

only_from = 192.168.1.0/200

It seems that the in.telnetd is not able to start.

When I try to run it from a shell I get the following error.

in.telnetd: getpeername: Socket operation on a non-socket
 
Old 02-20-2002, 11:43 PM   #2
Malicious
Member
 
Registered: Jan 2002
Location: Galveston Island
Distribution: suse, redhat
Posts: 208

Rep: Reputation: 30
in.telnetd is designed to be run thru inetd. One of the first things it does is to do a getpeername() on the open socket fd that was passed by inetd. When you execute it from the command line, you don't pass an open socket; getpeername() is looking at a null fd.

Use the -D option (debug). Do a man telnetd to find the option that follows the -D. There are several.

What kind of error do you get on the client end when you run telnet?
 
Old 02-21-2002, 08:33 AM   #3
Kaa
LQ Newbie
 
Registered: Feb 2002
Distribution: RedHat 7.2
Posts: 5

Original Poster
Rep: Reputation: 0
Client side

When I telnet from another machine to this box, it connects and then just sits there. If I send a 'return' the session closes.

You said that in.telnetd is used with inetd. What telnet daemon is used with xinetd?

Last edited by Kaa; 02-21-2002 at 08:48 AM.
 
Old 02-21-2002, 08:49 AM   #4
kill-hup
Member
 
Registered: Aug 2000
Location: NY - USA
Distribution: Slackware
Posts: 109

Rep: Reputation: 15
(insert stock line about telnet not being secure and how one should use ssh here )

It would seem that your "only_from" line is incorrect. There really is no CIDR notation definition for "/200". If you want to allow access from any address in the 192.168.1.0/255.255.255.0 network, you would enter "only_from = 192.168.1.0/24".

Not sure if this is your only problem, but it might help. You might want to check your system logs on the Linux box (/var/log/messages, perhaps) to see if any error messages are being generated by the server when you attempt to telnet in.

In reference to the other reply, xinetd is just a replacement for inetd. The same daemon (in.telnetd) can be run from either one. The poster's point was that you can't run "in.telnetd" from a command prompt (for reasons probably beyond the scope of this discussion).
 
Old 02-21-2002, 08:52 AM   #5
Kaa
LQ Newbie
 
Registered: Feb 2002
Distribution: RedHat 7.2
Posts: 5

Original Poster
Rep: Reputation: 0
SSH

I will use ssh, but I am afraid that I will have the same problems getting that set up too.

It seems that none of the ports on my server are open.
 
Old 02-21-2002, 09:06 AM   #6
kill-hup
Member
 
Registered: Aug 2000
Location: NY - USA
Distribution: Slackware
Posts: 109

Rep: Reputation: 15
SSH does not need to be run from *inetd - actually it is much happier if you run it stand-alone (just start sshd and let it run in the background).

Back to telnet - did you try changing the allow_from line or checking the messages in your system logs? Don't forget that you need to restart *inetd after making config changes, and this can usually be accomplished by sending the process the "Hangup" signal (kill -HUP, like my userid ). Any other info/symptoms you can provide can help the community at large here assist you.
 
Old 02-21-2002, 09:11 AM   #7
Kaa
LQ Newbie
 
Registered: Feb 2002
Distribution: RedHat 7.2
Posts: 5

Original Poster
Rep: Reputation: 0
At work

I am at work and the machine is at home.

Will try your remedies tonight.

Thanks
 
Old 02-21-2002, 10:11 PM   #8
Kaa
LQ Newbie
 
Registered: Feb 2002
Distribution: RedHat 7.2
Posts: 5

Original Poster
Rep: Reputation: 0
Problem solved

Used ssh
 
Old 02-21-2002, 11:52 PM   #9
kausik
LQ Newbie
 
Registered: Feb 2002
Location: Baruipur, India
Distribution: Red Hat 9.0
Posts: 29

Rep: Reputation: 15
Thumbs up Use SSH

Simply great to know that u r now using 'sshd'.
It is just fantastic yet more secured than 'telnet'.

If u are using a windows client to connect to ur Linux box, get installed WinAxe_6.2 on the client and work happily.

Kausik

 
  


Reply



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 problems xleft4dexy Linux - Networking 1 10-12-2003 07:51 AM
Hotwayd Telnet problems moneyshotz Linux - Software 2 09-07-2003 02:50 PM
Telnet Problems def1014 Linux - Networking 2 08-26-2002 12:53 PM
Telnet problems ldogg Linux - Networking 4 01-24-2002 07:09 AM
telnet problems comp33 Linux - Networking 4 12-27-2001 02:45 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:11 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