Friday, May 25, 2012

Allow Root Login by SSH Keys only

IF you want to allow root login via SSH keys only while disabling password-based login, edit /etc/ssh/sshd.conf to reflect following change:
Original:
PermitRootLogin yes
Change:
PermitRootLogin without-password

0 comments:

Post a Comment