Wasted lot of time today trying to figure out why ssh on some server still allows to log in with password despite the fact that in /etc/ssh/sshd_config password based log in is disabled:
Since the configuration is managed by Puppet I was expecting it restarts service as well. To my surprise pid file of sshd process was pretty old – Puppet, in fact, was unable to restart sshd:
1 2 3 4 5
It appears that Puppet tried to use init.d script. I’ve found a bug submitted to launchpad – init.d ssh script is broken in Ubuntu 14.04.
Please be informed and use ‘service’ command instead: