Ridding myself of root passwords?

Jacob Albretsen jakea at xmission.com
Mon Feb 3 14:03:53 MST 2014

On Monday, February 03, 2014 11:48:50 AM Lonnie Olson wrote:
> On Sun, Feb 2, 2014 at 4:55 PM, S. Dale Morrey <sdalemorrey at gmail.com> 
> > Has anyone here managed to completely eliminate a root password once it's
> > set?
> > I setup a server to be certificate auth for SSH.  But I seem to still be
> > able to SSH in with a password too.
> /etc/ssh/sshd_config
> PermitRootLogin no  # root cannot login at all
> or
> PermitRootLogin without-password  # root can only login via SSH keys

There is also the forced-commands-only option that I've found useful in a 
couple of places.

More information about the PLUG mailing list