Operating System - HP-UX
1752579 Members
4065 Online
108788 Solutions
New Discussion юеВ

Can ssh but cannot telnet

 
SOLVED
Go to solution
mohdamir
Frequent Advisor

Can ssh but cannot telnet

Hi Gurus,
I have a problem where one of my servers can ssh but cannot telnet. I've checked the /etc/inetd.conf and /etc/services but found nothing unusual. Hope you guys can help.

TQ
8 REPLIES 8
mohdamir
Frequent Advisor

Re: Can ssh but cannot telnet

/etc/services file
Jeeshan
Honored Contributor

Re: Can ssh but cannot telnet

do some check

1. Apply command "inetd -c" and try to telnet.
2. If not, try to telnet from localhost.
#telnet localhost 23
a warrior never quits
HejALL
Occasional Contributor

Re: Can ssh but cannot telnet

Check in /etc/services what is your telnet port.
Then do
#telnet localhost
if successful then try to to do telnet to the same port from another server. If not successful then check with network team if the port is blocked or not.
But must the protocol is enable in /etc/inetd.conf.
try restarting inetd inetd -c
mohdamir
Frequent Advisor

Re: Can ssh but cannot telnet

This is what it come out when I execute telnet localhost.

root[/] # telnet 127.0.0.1
Trying...
Connected to 127.0.0.1.
Escape character is '^]'.
telnetd: Telnet device drivers missing: No such device
Local flow control off
Connection closed by foreign host.
root[/] # telnet 127.0.0.1 23
Trying...
Connected to 127.0.0.1.
Escape character is '^]'.
telnetd: Telnet device drivers missing: No such device
Connection closed by foreign host.
Johnson Punniyalingam
Honored Contributor
Solution

Re: Can ssh but cannot telnet

Hi Mohdamir,

Do you have any session with root user?

If so,

# cd /
# rm /dev/pty/*
# rm /dev/pts/*
# insf -e
# cd /dev
# insf -d telm
# insf -d tels

Else try to login with single user mode and do the above.

Rgds,
Johnson,
Problems are common to all, but attitude makes the difference
Jeeshan
Honored Contributor

Re: Can ssh but cannot telnet

>>telnetd: Telnet device drivers missing: No such device

The pseudo terminal device files have been corrupted or some are missing. Do this:

rm /dev/pts/*
rm /dev/pty/*
cd /dev
insf -e
insf -d telm
insf -d tels
a warrior never quits
mohdamir
Frequent Advisor

Re: Can ssh but cannot telnet

Wala.. Thanks guys! (^_^)
mohdamir
Frequent Advisor

Re: Can ssh but cannot telnet

Thanks guys..