Link to home
Start Free TrialLog in
Avatar of chazhs
chazhs

asked on

Unable to connect thru telnet

                   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.
Avatar of MFCRich
MFCRich

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'
Avatar of chazhs

ASKER

telnet localhost also  gives connection refused error. (same error as above)
have you installed telnet server which is not installed by default?
Avatar of chazhs

ASKER

Yes, I did. rpm -q telnet-server says telnet installed.Thanks!
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...
ASKER CERTIFIED SOLUTION
Avatar of bryanjones
bryanjones

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of chazhs

ASKER

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

ASKER

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

ASKER

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