System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

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
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
Horia Chirculescu
Honored Contributor

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

Which version of SSH is installed on your server?

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

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

Horia,

Yes we have upgraded Secure SSH version from A.04.50.021 to A.05.30.008.

Horia Chirculescu
Honored Contributor

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

Did you re-installed special files for devices tty and pty?

In single-user mode:

insf -C tty
insf -d pty

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

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

Hi,

The issue has resolved.

Actual problem is Tivoli Client Agent was holding all the terminal bcos of which Server could not allocate new terminal.

After I stop and start the Tivoli agent. It allowed me to login.

Thanks for all who gave suggestions advises.
Azaru
Regular Advisor

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

Issue Resolved.
Horia Chirculescu
Honored Contributor

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

Well... Tivoli Client Agent was running/configured and you just forget mention it from the first time...

It seems that this is a huge general problem: not letting us to see/understand "the big picture".

My regards,
Horia.

Best regards from Romania,
Horia.