Operating System - HP-UX
1753540 Members
5247 Online
108795 Solutions
New Discussion юеВ

Re: How to enable telnet service on HP-UX 11.31

 
SOLVED
Go to solution
Kavita Poonia
Regular Advisor

How to enable telnet service on HP-UX 11.31

Hello all,

I need to enable telnet service on one of my HP-UX server having 11.31 version. As generally ssh is allowed for this version. But I need to do telnet and I am not able to that while I am able to ssh it.

Please help me out with this.

Thanks & regards,
Kavita
9 REPLIES 9
John Guster
Trusted Contributor

Re: How to enable telnet service on HP-UX 11.31

Ask your UNIX system administrator who is paid for knowing how to do the job.
Tim Nelson
Honored Contributor

Re: How to enable telnet service on HP-UX 11.31

review /etc/inetd.conf

If the line for telnet is commented (#) out then remove the comment and tell inetd to re-read its configuration file ( inetd -c ).

If the line for telnet is NOT commented out then you have other issues.

Typically telnet is disabled for security reasons, there may just be a reason that it has been disabled ( e.g. company security policy )

Steven E. Protter
Exalted Contributor

Re: How to enable telnet service on HP-UX 11.31

Shalom,

telnet is a internet service controlled by inetd.conf

The telnetd service is probably commented out. Restarting the service after making your change should do the trick.

Many security auditors don't like use of telnet when ssh can do the same job with a secure data stream and authentication.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Ganesan R
Honored Contributor

Re: How to enable telnet service on HP-UX 11.31

Hi,

Check /etc/inetd.conf and /etc/services file sand ensure telnet services are not disabled.
Best wishes,

Ganesh.
twang
Honored Contributor
Solution

Re: How to enable telnet service on HP-UX 11.31

check if there is an entry at /etc/inetd.conf
telnet stream tcp nowait root /usr/lbin/telnetd telnetd

check to see if the port is available for telnet,
#netstat -an |grep LISTEN |grep 23
tcp 0 0 *.23 *.* LISTEN


Kavita Poonia
Regular Advisor

Re: How to enable telnet service on HP-UX 11.31

Thanks a lot for such an excellent response.

I have checked /etc/inetd.conf file and found that the entry for telnet was hashed as in HP-UX11.31 version telnet service is disabled for security purposes.

and nothing was coming in netstat output.

$ netstat -an |grep LISTEN |grep 23
$


So I think I need to remove the hash.
twang
Honored Contributor

Re: How to enable telnet service on HP-UX 11.31

you can start telnet service with command like this " inited c ", it forces the current inetd to reread /etc/inetd.conf.
Hope it can helps.
twang
Honored Contributor

Re: How to enable telnet service on HP-UX 11.31

ManojK_1
Valued Contributor

Re: How to enable telnet service on HP-UX 11.31

edit the /etc/inetd.conf file and remove the "#" infront of the line "#telnet stream tcp6 nowait root /usr/lbin/telnetd telnetd -b /etc/issue"

and run the command "inetd -c"

and you can verify whether the telnet is running by the command
"netstat -an | grep 23"

if there is any line is there in the output like
"tcp 0 0 *.23 *.* LISTEN"

means telnet is running.

manoj K
Thanks and Regards,
Manoj K