Operating System - Linux
1833405 Members
2863 Online
110052 Solutions
New Discussion

Re: SSH connection number problem

 
ronald tang
New Member

SSH connection number problem

I have a HP itanium box with OS ver11.23, it only allows 2 SSH connections in currently(the 3rd will be refused), I want to change this settings, but when I looked at SSH configuration file, I did not find any parameter or directive associated with this setting.

Please help.

Ronald
5 REPLIES 5
Ragu_3
Trusted Contributor

Re: SSH connection number problem

"MaxStartups" is the directive for supporting concurrent connections in your "sshd_config" file.

MaxStartups specifies the maximum number of concurrent connections to the SSH daemon. The default value might be 2.
Debian GNU/Linux for the Enterprise! Ask HP ...
Steven E. Protter
Exalted Contributor

Re: SSH connection number problem

Shalom,

This being an HP-UX system, there are kernel parameters that need to be checked.

dtvitan1:/# kctune | grep tel
nstrtel 60 Default

Someone may have lowered this figure, which is not dynamic and requires a system boot.

Check:
/var/adm/syslog/syslog.log
There may be an error message there that is helpful.

After changing ssh_config or sshd_config
/sbin/init.d/secsh stop
/sbin/init.d/secsh start

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
ronald tang
New Member

Re: SSH connection number problem

Hi,

I looked up the syslog.log, found the following messages:

Dec 29 14:27:11 webdev03 sshd[17507]: Accepted keyboard-interactive/pam for rtang from 10.97.2.92 port 1645 ssh2
Dec 29 14:27:29 webdev03 sshd[17532]: Accepted keyboard-interactive/pam for rtang from 10.97.2.92 port 1646 ssh2
Dec 29 14:29:04 webdev03 sshd[17554]: Accepted keyboard-interactive/pam for rtang from 10.97.2.92 port 1647 ssh2
Dec 29 14:29:04 webdev03 sshd[17562]: fatal: PAM: pam_open_session(): Can not make/remove entry for session

It is sounds the PAM dosen't allow the 3rd session, but I don't know how to config PAM.
Denver Osborn
Honored Contributor

Re: SSH connection number problem

Have a look at the /etc/default/security file for an NUMBER_OF_LOGINS_ALLOWED entry. You probably have this set at "2". This is system wide, increase it if needed.

-denver
ronald tang
New Member

Re: SSH connection number problem

Hi Denver,

I looked up the /etc/default/security, the "
NUMBER_OF_LOGINS_ALLOWED" was set to 1, after I changed it to 0 (allow any times login), it is working fine.

But I still don't understand why i can have 2 connections before while the settings was (NUMBER_OF_LOGINS_ALLOWED=1).

Thank you all for help.