Operating System - HP-UX
1748197 Members
2543 Online
108759 Solutions
New Discussion юеВ

Re: Unable to login in to hp-ux machine 11.23

 
Azaru
Regular Advisor

Unable to login in to hp-ux machine 11.23

Hi,

When i tried login through putty & entered credentials it gives the following error

login as: dr199514
Using keyboard-interactive authentication.
Password:
Server refused to allocate pty
ttytype: couldn't open /dev/tty for reading
stty: : Not a typewriter

Regards,
Azaru
15 REPLIES 15
Prasanth Thomas
Valued Contributor

Re: Unable to login in to hp-ux machine 11.23

Hi,
Can u able to login through MP console?

Regards,
PT.
Azaru
Regular Advisor

Re: Unable to login in to hp-ux machine 11.23

yes..
i can login through MP console...

i am getting following msg from syslog
Mar 2 08:37:40 globaldb sshd[7824]: Accepted keyboard-interactive/pam for dr199514 from 172.16.240.141 port 62145 ssh2
Mar 2 08:37:40 globaldb sshd[7824]: error: openpty: Device busy
Mar 2 08:37:40 globaldb sshd[7826]: error: session_pty_req: session 0 alloc failed

Regards,
Azaru
Prasanth Thomas
Valued Contributor

Re: Unable to login in to hp-ux machine 11.23

ok fine,
please do a comparison for the below files with other server which is having same version.

/var/adm/inetd.sec
/etc/inetd.conf

if you did not find any difference please run the below command and try to login.
#mv /etc/securitty /etc/securitty.old

Regards,
PT.
Johnson Punniyalingam
Honored Contributor

Re: Unable to login in to hp-ux machine 11.23

check from kernal parameter
value for "npty"

#ps -ef | grep pty | wc -l
2

#ls /dev/pts | egrep -i '^[0-9]' | wc -w
60

check from above command how much is the current count for connection "npty" ???
Problems are common to all, but attitude makes the difference
Azaru
Regular Advisor

Re: Unable to login in to hp-ux machine 11.23


Thomas:
Both servers having similar entries in /var/adm/inetd.sec & /etc/inetd.conf.

I haven't find the /etc/security file.



johnson:
Find the below o/p:
globaldb:root-/etc>ls /dev/pts | egrep -i '^[0-9]' | wc -w
60
globaldb:root-/etc>ps -ef | grep pty | wc -l
2


regards,
Azaru
Johnson Punniyalingam
Honored Contributor

Re: Unable to login in to hp-ux machine 11.23

are you using ssh ?

please try to restart ssh.

if still cannot try to create the device files using

man insf -> more info

# insf -d pts -n
Problems are common to all, but attitude makes the difference
Azaru
Regular Advisor

Re: Unable to login in to hp-ux machine 11.23

yeah i am using ssh..
T1471AA A.05.30.008 HP-UX Secure Shell

And i have done the steps already as u mentioned.. But same result
Horia Chirculescu
Honored Contributor

Re: Unable to login in to hp-ux machine 11.23

Hello, Azaru

>ttytype: couldn't open /dev/tty for reading

Seems that there is something wrong with this device file. Maybe re-creating this would solve your problem.

Did you recently upgraded/re-installed sshd?

Horia.
Best regards from Romania,
Horia.
Azaru
Regular Advisor

Re: Unable to login in to hp-ux machine 11.23

i have recreaeted the device file but still the result is same.. In syslog.log output it gives
error: openpty: Device busy
error: session_pty_req: session 0 alloc failed