Operating System - HP-UX
1833389 Members
3210 Online
110052 Solutions
New Discussion

Cannot telnet into new HPUX system

 
Chris Garcia_1
New Member

Cannot telnet into new HPUX system

I'm quite new to HPUX, just got this new system. When I try to telnet into it I get the following message:

devastator% telnet host
Trying xxx.xxx.xxx.xxx...
Connected to host.domain.com.
Escape character is '^]'.
Connection closed by foreign host.

In /var/adm/syslog/syslog.log I see the following error: telnetd[3056]: telnet pty allocation failed

Can anyone shed some light on this situation?
7 REPLIES 7
Steven E. Protter
Exalted Contributor

Re: Cannot telnet into new HPUX system

insf -e

You need to at the very least initialize your pty devices.

There may in fact be other problems.

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
Steven E. Protter
Exalted Contributor

Re: Cannot telnet into new HPUX system

I should have elaborated.

Are there other users connected to that system?

Answer with ps -ef | grep telnetd

You might not have enough device files set up.

If so, I'm sure myself or others can dig up the procedure for upping that figure.

I think its my first post though.

If you are new, please consider assigning points to answers that help AND

Let us know if you solved your problem. So many people just leave us hanging.'


:-)

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
Sachin Patel
Honored Contributor

Re: Cannot telnet into new HPUX system

Hi Agree with steven. Don't left us hanging. if your problme is fixed let us know.

> telnet pty allocation failed
indicates that something is wrong with pty so

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

You might have to login to console if you can't rlogin.


Sachin
Is photography a hobby or another way to spend $
Chris Garcia_1
New Member

Re: Cannot telnet into new HPUX system

The insf -e seemed to do the trick! Does this need to be run for all new HPUX clients?

--Chris
Tim Sanko
Trusted Contributor

Re: Cannot telnet into new HPUX system

Not always, but quite often.


Tim
Chris Garcia_1
New Member

Re: Cannot telnet into new HPUX system

Ok thanks, good to know.

--Chris
Michael Tully
Honored Contributor

Re: Cannot telnet into new HPUX system

This is what we do for every new system. We change the kernel so that it has these entries.

npty 1024
nstrpty 1024
nstrtel 1024

Generate new kernel. Naturally include any other changes you wish to do at this time.

Reboot and run these commands.

# cd /dev
# insf ???d pty ???s 1024 ???e ???v
# insf ???d ptm ???s 1024 ???e ???v
# insf -d telm ???s 1024 ???e ???v
# insf -d tels ???s 1024 ???e -v
Anyone for a Mutiny ?