artomason
January 25th, 2013, 04:39 PM
Currently I'm using 12.04 LTS on an ancient hardware configuration for a home server. I have MaxStartups in /etc/ssh/sshd_config set to 2 however I'm unsure if the new upstart respawn setting in /etc/init/ssh.conf overrides these setting.
> /etc/init/ssh.conf
respawn
respawn limit 10 5
umask 022
I would like to limit the instances of SSH to 2, and if the /etc/init/ssh.conf stuff doesn't effect ssh instances due to settings in sshd_config, can I remove the respawn & respawn limit. Basically letting sshd_config handle the max instances without risking the service being respawn 1000 times due to a hacker or glitch.
Thanks.
> /etc/init/ssh.conf
respawn
respawn limit 10 5
umask 022
I would like to limit the instances of SSH to 2, and if the /etc/init/ssh.conf stuff doesn't effect ssh instances due to settings in sshd_config, can I remove the respawn & respawn limit. Basically letting sshd_config handle the max instances without risking the service being respawn 1000 times due to a hacker or glitch.
Thanks.