- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- ssh stop accepting connections
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
тАО12-09-2009 01:29 AM
тАО12-09-2009 01:29 AM
I have a problem in a server with ssh connections:
># ssh -vvv monuser@localhost
OpenSSH_4.3p2-hpn, OpenSSL 0.9.7i 14 Oct 2005
HP-UX Secure Shell-A.04.30.006, HP-UX Secure Shell version
debug1: Reading configuration data /opt/ssh/etc/ssh_config
debug3: Seeding PRNG from /opt/ssh/libexec/ssh-rand-helper
debug2: ssh_connect: needpriv 0
debug1: Connecting to localhost [127.0.0.1] port 22.
debug1: Connection established.
debug1: permanently_set_uid: 0/3
debug1: identity file /.ssh/id_rsa type -1
debug1: identity file /.ssh/id_dsa type -1
ssh_exchange_identification: Connection closed by remote host
If I restart the sshd daemon it starts working right:
># ssh -vvv monuser@localhost
OpenSSH_4.3p2-hpn, OpenSSL 0.9.7i 14 Oct 2005
HP-UX Secure Shell-A.04.30.006, HP-UX Secure Shell version
debug1: Reading configuration data /opt/ssh/etc/ssh_config
debug3: Seeding PRNG from /opt/ssh/libexec/ssh-rand-helper
debug2: ssh_connect: needpriv 0
debug1: Connecting to localhost [127.0.0.1] port 22.
debug1: Connection established.
debug1: permanently_set_uid: 0/3
debug1: identity file /.ssh/id_rsa type -1
debug1: identity file /.ssh/id_dsa type -1
debug1: Remote protocol version 2.0, remote software version OpenSSH_4.3p2-hpn
debug1: match: OpenSSH_4.3p2-hpn pat OpenSSH*
.. but after less than a minute, it stop working again. The only thing I have seen is that the problem appears once the number of ssh connections (ps -ef|grep ssh) is over 20. ┬┐Is this possible? ┬┐Any idea?
Regards,
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-09-2009 03:19 AM
тАО12-09-2009 03:19 AM
Re: ssh stop accepting connections
I have seen that some sshd proceses remains "sshd: [net]" (they should die after connecting):
># ps -ef|grep ssh
root 17377 14634 0 12:15:07 ? 0:00 sshd: [accepted]
user1 16218 16213 0 10:34:57 ? 0:01 sshd: wlzam@pts/4
root 16795 14634 0 12:14:07 ? 0:00 sshd: [accepted]
root 5738 14634 0 12:11:34 ? 0:00 sshd: ser [priv]
user 6886 5738 0 12:11:39 ? 0:00 sshd: user@pts/7
sshd 16792 16791 0 12:14:07 ? 0:00 sshd: [net]
root 14634 1 0 10:52:59 ? 0:01 /opt/ssh/sbin/sshd
sshd 16798 16796 0 12:14:07 ? 0:00 sshd: [net]
sshd 17376 17375 0 12:15:07 ? 0:00 sshd: [net]
root 16796 14634 0 12:14:07 ? 0:00 sshd: [accepted]
root 17379 14634 0 12:15:07 ? 0:00 sshd: [accepted]
sshd 17372 17371 0 12:15:07 ? 0:00 sshd: [net]
sshd 17374 17373 0 12:15:07 ? 0:00 sshd: [net]
root 16213 1 0 10:34:53 ? 0:00 sshd: user1 [priv]
root 16791 14634 0 12:14:07 ? 0:00 sshd: [accepted]
root 16785 14634 0 12:14:07 ? 0:00 sshd: [accepted]
root 17375 14634 0 12:15:07 ? 0:00 sshd: [accepted]
sshd 16794 16793 0 12:14:07 ? 0:00 sshd: [net]
root 16793 14634 0 12:14:07 ? 0:00 sshd: [accepted]
sshd 16786 16785 0 12:14:07 ? 0:00 sshd: [net]
sshd 16797 16795 0 12:14:07 ? 0:00 sshd: [net]
sshd 17380 17379 0 12:15:07 ? 0:00 sshd: [net]
sshd 17378 17377 0 12:15:07 ? 0:00 sshd: [net]
root 17542 17913 1 12:15:43 pts/tl 0:00 grep ssh
root 17371 14634 0 12:15:07 ? 0:00 sshd: [accepted]
root 17373 14634 0 12:15:07 ? 0:00 sshd: [accepted]
When these proceses are 10, I cannot coonect. ├В┬┐Any idea why these proceses might be hung?
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-09-2009 06:25 PM
тАО12-09-2009 06:25 PM
SolutionSpecified the maximum number of concurrent unauthenticated connections to the sshd daemon. Additional connections will be
dropped until authentication succeeds or the LoginGraceTime
expires for a connection. The default is 10
lease see $ man sshd_config for more detail
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-09-2009 09:10 PM
тАО12-09-2009 09:10 PM
Re: ssh stop accepting connections
I am suspecting a duplicate IP in the network. Check the timestamp of the following.
ll /var/adm/net*
Ravi.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-11-2009 05:54 AM
тАО12-11-2009 05:54 AM
Re: ssh stop accepting connections
https://h20392.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=T1471AA
... along with the KRNG package, and give it another try.