1834601 Members
3896 Online
110069 Solutions
New Discussion

Telnet Problem

 
SOLVED
Go to solution
Tvs
Regular Advisor

Telnet Problem

Hi all..

Pls help me..

when iam trying to telnet to the server iam getting the following error message

rlogind: Unable to allocate pty on remote host.

what may be the problems..?

iam attaching the output of the following command
$ netstat -a | grep telnet
tcp 0 0 server name .2147 ESTABLISHED
tcp 0 2 server name .1946 ESTABLISHED
tcp 0 0 *.telnet *.* LISTEN
tcp 0 0 servername servername ESTABLISHED
tcp 0 0 server name .1726 ESTABLISHED
$
and the ptydeamon is running
the output of sysdef command
npty 60 - 1- -
nstrpty 60 - - -
pls help me to find out the solution

thanks in advance
3 REPLIES 3
Arunvijai_4
Honored Contributor
Solution

Re: Telnet Problem

Similar problem with lots of solutions,

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=39905

a) Check the number of pty/s drivers that are created in /dev/pty and /dev/pts :-
# ls *|wc -l
Most likely you'll get 60 (ie the default).
b) Increase the count to say 200
# cd /dev
# insf -n200 -dpty0
# insf -n200 -dpty1
# insf -d pts -s 200 -e
c) Now try to login again.

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
jpcast_real
Regular Advisor

Re: Telnet Problem

I will review the system resources . Have a look if there is any kind of error in the syslog.log or if you have glance you can use it to see if any parameter has reached its limit.
Here rests one who was not what he wanted and didn't want what he was
Bill Hassell
Honored Contributor

Re: Telnet Problem

pty device files are searched in a specific order and (at least in the past) when a missing device file was discovered, further searches were discontinued. If you do not have 60 connections when you get the message, then a missing pty file is probably the issue. Use SAM to make the 3 kernel parameters larger:

nstrtel
npty
nstrpty

Set them all to 100 and you'll see SAM will create the extra (and missing) device files. Then your system will be ready to reboot weith the new kernel.


Bill Hassell, sysadmin