Operating System - HP-UX
1834814 Members
2740 Online
110070 Solutions
New Discussion

Re: Telnet connection not allowed

 
Daniel Wajsman
Contributor

Telnet connection not allowed

Hi
Sometimes,when I reboot a HP Server the ICMP protocol is up ( I can ping it ) but Telnet isn??t.
Why can this be going on?
How can I restart the Telnet service without rebooting the Server ?
Thanks
be yourself
5 REPLIES 5
hpuxrox
Respected Contributor

Re: Telnet connection not allowed

Hi,

Check you /etc/inetd.conf file and make sure telnet is defined.

The check to see if inetd daemon is running.

Craig Rants
Honored Contributor

Re: Telnet connection not allowed

When a server reboots, it will respond to a ping well before it responds to a telnet connection. That is because the inetd services are not started until well into the boot sequence, where as the nic card will return ping responses once the card is configured since it does not need inetd services...

Hope this clarifies things,
C
"In theory, there is no difference between theory and practice. But, in practice, there is. " Jan L.A. van de Snepscheut
Jeff Schussele
Honored Contributor

Re: Telnet connection not allowed

Hi Daniel,

You should check the /etc/rc.log for any startup errors & to see just exactly what is being started at boot time.
Then as Yates pointed out check the /etc/inetd.conf file & insure the telnet line is not commented out. Also check the /var/adm/inetd.sec file to check whether telnet is being disallowed from certain hosts/nets or only allowed from certain hosts/nets.

HTH,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
ashish nanjiani
Frequent Advisor

Re: Telnet connection not allowed

try to restart the telnetd daemon
/usr/sbin/telnetd
Darrell Allen
Honored Contributor

Re: Telnet connection not allowed

Hi Daniel,

ICMP is a protocol, part of the IP protocol suite. /sbin/rc2.d/S340net starts IP on your NICs.

Telnetd is an application. It is spawned for each telnet client request by inetd. /sbin/rc2.d/S500inetd starts inetd.

However long it takes the system to process the other rc scripts between S340net and S500inetd and to run S500inetd is how long the system will respond to ICMP requests but not telnetd.

telnetd doesn't run all the time so you can't actually restart it. Again, a copy of telnetd is started by inetd for each client telnet request. The best way to stop inetd and restart it is to use the rc script:
/sbin/rc2.d/S500inetd stop
/sbin/rc2.d/S500inetd start

Darrell
"What, Me Worry?" - Alfred E. Neuman (Mad Magazine)