Created
July 25, 2017 06:51
-
-
Save aduzsardi/b34aeb244a5fcc4302d8237144eb59ed to your computer and use it in GitHub Desktop.
disable root login with password
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#You can do this using the PermitRootLogin directive. From the sshd_config manpage: | |
# | |
# Specifies whether root can log in using ssh(1). The argument must be “yes”, “without-password”, “forced-commands-only”, or “no”. The default is “yes”. | |
# | |
# If this option is set to “without-password”, password authentication is disabled for root. | |
# | |
#The following will accomplish what you want: | |
PasswordAuthentication yes | |
PermitRootLogin without-password | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment