Operating System - HP-UX
1834796 Members
2391 Online
110070 Solutions
New Discussion

Re: why I could ssh but cannot telnet?

 
Jamie Chui
Occasional Advisor

why I could ssh but cannot telnet?

Hi

I have an 11.31 machine, to which I could ssh but cannot telnet. I checked /etc/inetd.conf and telnet is enabled.

what can I do to have telnet enabled in this box?
7 REPLIES 7
Fabian Briseño
Esteemed Contributor

Re: why I could ssh but cannot telnet?

Hello Jamie.

Is there an error in /var/adm/syslog/syslog.log ?

Also try to restart the inetd deamon.

Knowledge is power.
Jamie Chui
Occasional Advisor

Re: why I could ssh but cannot telnet?

syslog only showed the successful logins wiht SSH, but no mentioning of the failed telnet attempts.

Also had restarted inetd by 'inetd -c", which is also logged in syslog, to no vail.
Fabian Briseño
Esteemed Contributor

Re: why I could ssh but cannot telnet?

when you try to login with telnet, what message is displayed ?

what does it do ?
Knowledge is power.
Steven Schweda
Honored Contributor

Re: why I could ssh but cannot telnet?

1. Telnet from what/where to the HP-UX
system?

2. How much network is between you and the
HP-UX system? Same LAN segment, multiple
firewalls, or what?

3. Can you Telnet from the HP-UX system to
itself?

> [...] what message is displayed ?
> what does it do ?

Actual commands with actual output are
usually better than vague descriptions.
Jamie Chui
Occasional Advisor

Re: why I could ssh but cannot telnet?

I wasn't able to telnet to itself. Same message came up:

login: root
Password:
Login incorrect
login:

I am telneting from one 11.31 machine to anoter 11.31 machine on the same subnet.

There might be some default firewall get installed but I don't know. It wasn't accepting ping but I managed to modify /etc/opt/ipf/ipf.conf and made ping to respond. But I am not sure of the rest.
Steven Schweda
Honored Contributor

Re: why I could ssh but cannot telnet?

If you're getting the "login: " prompt, then
the Telnet server is working, and it's not a
network or firewall problem.

> login: root

/etc/securetty can stop "root" from logging
in from some places.

"man login" Or do a forum search for
something like:
hp-ux securetty

Does it work better for a non-"root" user?
Safarali
Valued Contributor

Re: why I could ssh but cannot telnet?

hi
Jamie
try to do the following from your system
telnet 0
use root and password
if not working use the normal user
and if it is working from the user use
su -
if it is working your root user is blocked to use in telnet only root user is allowed in console console

Regards
Safar