Showing posts with label ssh root key only. Show all posts
Showing posts with label ssh root key only. Show all posts

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