- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Server refused to allocate pty
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-22-2006 02:02 PM
тАО01-22-2006 02:02 PM
Server refused to allocate pty
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-22-2006 02:31 PM
тАО01-22-2006 02:31 PM
Re: Server refused to allocate pty
wat is the max. no. of pts devices:
# kmtune -q nstrpty
also the number of pts devices available:
# ls /dev/pts | egrep -i '^[0-9]' | wc -w
regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-22-2006 02:35 PM
тАО01-22-2006 02:35 PM
Re: Server refused to allocate pty
Check the kernel parameter "npty" using
# kmtune -q npty
Check the current useage of the ptys being used
# ps -ef | grep pty | wc -l
If the usuage is less than "npty" kernel value , then creat ptys using
# insf -d pty -n
This will creat devices files( ptys ).
If the useage is more that "npty" , the you need to increase the kernel parameter. It will require kernel rebuild and reboot.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-22-2006 02:42 PM
тАО01-22-2006 02:42 PM
Re: Server refused to allocate pty
#kmtune -q npty
npty 60 - 60
#ps -ef | grep pty | wc -l
2
#ls /dev/pts | egrep -i '^[0-9]' | wc -w
60
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-22-2006 04:01 PM
тАО01-22-2006 04:01 PM
Re: Server refused to allocate pty
I over-looked the subject error message, Sorry....
SSH uses stream based pseudo terminal named as "pts" and not "pty". Hence the number of "pts" device files in "/dev" and "nstrpty" kernel parameter are relevant for SSH.
Since you see the "pts" device files are 60, maybe "nstrpty" would be same number. Better check it using kmtune.
Check of "pts" in used using "ps -ef".
If less create the device files using
# insf -d pts -n
Which version of SSH installed on the server?
Where do you see this message?
Any error in syslog,demsg?
Check if "sshd" daemon is running
Is the system is Trusted system?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-22-2006 04:47 PM
тАО01-22-2006 04:47 PM
Re: Server refused to allocate pty
Which version of SSH installed on the server?
A.03.10.002 HP-UX Secure Shell
Where do you see this message? During login, after entering the username and password, I got the following display plus garbage characters.
Server refused to allocate pty
ttytype: couldn't open /dev/tty for reading
Any error in syslog,demsg? I got lots of error like :
error: /dev/ptmx: Device busy
error: session_pty_req: session 0 alloc failed
Check if "sshd" daemon is running
Yup, it is running
Is the system is Trusted system? No
Here's the output of :
#ps -ef | grep pts | wc -l
125
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-22-2006 05:33 PM
тАО01-22-2006 05:33 PM
Re: Server refused to allocate pty
after looking at your latest reply, it seems a restart of ssh is required.
most importantly, use the latest version of secure shell:
http://h20293.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=T1471AA
v3.10 is really old.
regards.
(p.s. please assign points.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-22-2006 05:43 PM
тАО01-22-2006 05:43 PM
Re: Server refused to allocate pty
Secure shell version A.03.10.002 is very old and the latest is A.04.20.004. You can download it from, http://h20293.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=T1471AA
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-23-2006 04:03 AM
тАО01-23-2006 04:03 AM
Re: Server refused to allocate pty
"error: /dev/ptmx: Device busy" is a real problem. The error you are getting makes a sense for this problem.
The "/dev/ptmx" is a Master pty driver . This device driver should get accessed so that alongwith slave device driver "/dev/pts/
Check who is using the "/dev/ptmx" device using
# fuser -u /dev/ptmx
You need to kill those processes using
# fsusr -ku /dev/ptmx
Then you should able to log-in.
As mentioned by others, it is always better to have latest version as it contains many fixes for issues encountered in the old versions and new features as well.