Solved

Unable to connect thru telnet

Posted on 2002-06-12
9
267 Views
Last Modified: 2013-12-16
                   netstat -na | grep :23 does not give any output.
                    That means my xinetd is not listening ?
                    How do I make it listen ?

                    I have installed telnet
                    And my /etc/xinetd.d/telnet file looks like

                    service telnet
                    {
                           flags           = REUSE
                           socket_type     = stream
                           wait            = no
                           user            = root
                           server          = /usr/sbin/in.telnetd
                           log_on_failure  += USERID
                           disable         = no
                    }

Also note,  ps -ef | grep xinetd  gives nothing.
Does it mean xinet is not running ?
I did do xinet restart and it says xinetd started succesfully.
0
Comment
Question by:chazhs
9 Comments
 
LVL 4

Expert Comment

by:MFCRich
ID: 7075363
Can you telnet to the machine from itself?

>> telnet localhost

If you can then it may be that you have some firewall rules in place on the machine (or its gateway). It could also be that you have some access restrictions in '/etc/xinet.conf'
0
 

Author Comment

by:chazhs
ID: 7076649
telnet localhost also  gives connection refused error. (same error as above)
0
 
LVL 3

Expert Comment

by:cincin77
ID: 7077487
have you installed telnet server which is not installed by default?
0
Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

 

Author Comment

by:chazhs
ID: 7078800
Yes, I did. rpm -q telnet-server says telnet installed.Thanks!
0
 
LVL 3

Expert Comment

by:cincin77
ID: 7080430
the script that deals with xinetd should be under /etc/init.d

go to that directory and issue;
./xinetd status
if it says that it does not work, issue
./xinetd start

hope this helps...
0
 
LVL 1

Accepted Solution

by:
bryanjones earned 50 total points
ID: 7106489
The reason for unable to telnet - is that telnet is turned off - what you need to do is to run the following command /sbin/chkconfig telnet on - this will turn on telnet - to see what else you want on or off you run /sbin/chkconfig --list this will show all the run levels and what is turned on/off per run level.
0
 

Author Comment

by:chazhs
ID: 7109337
Thankyou Sir! That was the problem.
Telnet was off.
Turned it on now, and everything looks great :)
Thanks for yours and everyones help!!!
0
 

Author Comment

by:chazhs
ID: 7109338
Thankyou Sir! That was the problem.
Telnet was off.
Turned it on now, and everything looks great :)
Thanks for yours and everyones help!!!
0
 

Author Comment

by:chazhs
ID: 7109340
Thankyou Sir! That was the problem.
Telnet was off.
Turned it on now, and everything looks great :)
Thanks for yours and everyones help!!!
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

How many times have you wanted to quickly do the same thing to a list but found yourself typing it again and again? I first figured out a small time saver with the up arrow to recall the last command but that can only get you so far if you have a bi…
Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question