- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- OpenSSH v.4.5p1 -HP-UX11i - Server refused to allo...
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
тАО09-30-2007 04:44 PM
тАО09-30-2007 04:44 PM
OpenSSH v.4.5p1 -HP-UX11i - Server refused to allocate pty.
Recently someone had changed the file ownership (recursively) on system critical partitions. Though we got them restored from backup, but since then there has been a problem logging on with SSH. When connecting over putty, I see this message "Server refused to allocate pty". After this message, I see garbled text as profile is executed and then cursor stays without giving me login prompt.
Has anyone seen this issue before. I saw one thread which mentions about kernel parameter nstrpty, which is 60 and there are not many sessions established to the host to reach that count.
Thanks in advance.
Sharad Saraswat
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-30-2007 06:06 PM
тАО09-30-2007 06:06 PM
Re: OpenSSH v.4.5p1 -HP-UX11i - Server refused to allocate pty.
Increase Kernel Parameter Value of 'npty' - Number of ptys (Pseudo ttys)
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-30-2007 06:09 PM
тАО09-30-2007 06:09 PM
Re: OpenSSH v.4.5p1 -HP-UX11i - Server refused to allocate pty.
Install Latest HP-UX Secure Shell (HP Version):
https://h20293.www2.hp.com/portal/swdepot/try.do?productNumber=T1471AA
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-30-2007 08:50 PM
тАО09-30-2007 08:50 PM
Re: OpenSSH v.4.5p1 -HP-UX11i - Server refused to allocate pty.
Have you tried with other application that supports SSH (like Xmanager)?, and with telnet?
Could you please send us all of the output error information?
Regards;
J. Bravo.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-30-2007 09:57 PM
тАО09-30-2007 09:57 PM
Re: OpenSSH v.4.5p1 -HP-UX11i - Server refused to allocate pty.
Oct 1 05:24:17 myhost sshd[7488]: Accepted password for az8793 from 143.5.68.250 port 4782 ssh2
Oct 1 05:24:18 myhost sshd[7488]: error: openpty: Bad file number
Oct 1 05:24:18 myhost sshd[7488]: error: openpty: Bad file number
Oct 1 05:24:18 myhost sshd[7488]: error: session_pty_req: session 0 alloc failed
Oct 1 05:24:18 myhost sshd[7488]: error: session_pty_req: session 0 alloc failed
Oct 1 05:25:01 myhost sshd[7626]: Accepted password for az8793 from 143.5.68.250 port 4784 ssh2
Some more info:
# kmtune | grep -e npty -e nstrpty -e nstrtel
npty 60 - 60
nstrpty 60 - 60
nstrtel 60 - 60
# ps -ef | egrep "pty|pts|tty"
root 1117 1 0 Sep 16 ? 0:00 /usr/sbin/ptydaemon
az8793 11525 11524 0 05:28:44 pts/tb 0:00 -sh
root 13823 11604 3 05:45:47 pts/tb 0:00 egrep pty|pts|tty
root 11524 1485 0 05:28:44 pts/tb 0:00 telnetd -b /etc/issue
root 13822 11604 10 05:45:47 pts/tb 0:00 ps -ef
root 11604 11525 0 05:28:54 pts/tb 0:00 -sh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-30-2007 10:59 PM
тАО09-30-2007 10:59 PM
Re: OpenSSH v.4.5p1 -HP-UX11i - Server refused to allocate pty.
Could you start the sshd daemon in debug mode (-d3)? And then send us the log, please.
Regards;
J. Bravo.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-30-2007 11:19 PM
тАО09-30-2007 11:19 PM
Re: OpenSSH v.4.5p1 -HP-UX11i - Server refused to allocate pty.
Please find attached the debug from client and server sides in zip file. The data was too much to post.
Thanks so much for your help in looking into this.
Best Regards,
Sharad Saraswat
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-01-2007 12:51 AM
тАО10-01-2007 12:51 AM
Re: OpenSSH v.4.5p1 -HP-UX11i - Server refused to allocate pty.
Could you check if you have enabled "PAMAuthenticationViaKbdInt yes" in sshd_config?
Regards;
J. Bravo.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-01-2007 12:59 AM
тАО10-01-2007 12:59 AM
Re: OpenSSH v.4.5p1 -HP-UX11i - Server refused to allocate pty.
Deprecated option PAMAuthenticationViaKbdInt
It did not work though. Since (may be) this also used PAM so I enabled PAM as well by using this token UsePAM yes and bounced sshd.
Same results.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-01-2007 01:00 AM
тАО10-01-2007 01:00 AM
Re: OpenSSH v.4.5p1 -HP-UX11i - Server refused to allocate pty.
Deprecated option PAMAuthenticationViaKbdInt
It did not work though. Since (may be) this also used PAM so I enabled PAM as well by using this token UsePAM yes and bounced sshd.
Same results.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-01-2007 02:56 AM
тАО10-01-2007 02:56 AM
Re: OpenSSH v.4.5p1 -HP-UX11i - Server refused to allocate pty.
Do you have checked that all of the /dev/tty* files exist in your server and that the permissions are well?
Regards;
J. Bravo.