Difference between revisions of "PermitRootLogin"
Jump to navigation
Jump to search
(Removed redirect to Root) Tag: Removed redirect |
|||
(11 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | + | <code>PermitRootLogin</code> in <code>[[/etc/ssh/sshd_config]]</code> file | |
PermitRootLogin prohibit-password | PermitRootLogin prohibit-password | ||
− | yes | + | PermitRootLogin yes |
+ | Values: | ||
+ | * <code>yes, prohibit-password, forced-commands-only, or no.</code>. Default value is <code>prohibit-password</code>. | ||
+ | |||
+ | |||
+ | [[rpl --backup]] "#PermitRootLogin prohibit-password" "PermitRootLogin yes" /etc/ssh/sshd_config && [[service ssh restart]] | ||
+ | |||
+ | |||
+ | PermitRootLogin yes | ||
+ | Match User root | ||
+ | [[PasswordAuthentication]] yes | ||
+ | |||
+ | == Related == | ||
+ | * <code>[[service ssh restart]]</code> | ||
== See also == | == See also == | ||
* {{sshd_config}} | * {{sshd_config}} | ||
+ | * {{root}} | ||
+ | |||
+ | |||
+ | [[Category:OpenSSH]] |
Latest revision as of 13:38, 31 January 2024
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
.
rpl --backup "#PermitRootLogin prohibit-password" "PermitRootLogin yes" /etc/ssh/sshd_config && service ssh restart
PermitRootLogin yes Match User root PasswordAuthentication yes
Related[edit]
See also[edit]
Advertising: