Solved

Unable to connect thru telnet

Posted on 2002-06-12
9
263 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
 

Author Comment

by:chazhs
ID: 7078800
Yes, I did. rpm -q telnet-server says telnet installed.Thanks!
0
Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

 
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

Suggested Solutions

Title # Comments Views Activity
docker invalid registry name 2 107
add a 1000 ms delay after each sending email operation 12 70
Linux "time" command output redirection 16 121
Linux hostname change 2 55
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…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
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.

920 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now