Difference between revisions of "PermitRootLogin"
Jump to navigation
Jump to search
Line 2: | Line 2: | ||
PermitRootLogin prohibit-password | PermitRootLogin prohibit-password | ||
+ | |||
+ | PermitRootLogin yes | ||
Values: | Values: | ||
Line 11: | Line 13: | ||
Match User root | Match User root | ||
[[PasswordAuthentication]] yes | [[PasswordAuthentication]] yes | ||
+ | |||
+ | == Related == | ||
+ | * <code>[[service ssh restart]]</code> | ||
+ | |||
== See also == | == See also == |
Revision as of 10:57, 13 December 2023
PermitRootLogin
in /etc/ssh/sshd_config
file
PermitRootLogin prohibit-password
PermitRootLogin yes
Values:
yes, prohibit-password, forced-commands-only, or no.
. Default value isprohibit-password
.
PermitRootLogin yes Match User root PasswordAuthentication yes
Related
See also
Advertising: