Difference between revisions of "PasswordAuthentication"
Jump to navigation
Jump to search
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | <code>PasswordAuthentication</code> directive in [[sshd_config]] | + | <code>PasswordAuthentication</code> directive in [[sshd_config]], default is ''<code>yes</code>''. |
− | |||
− | <code> | ||
+ | == Examples == | ||
===Match=== | ===Match=== | ||
[[Match (OpenSSH)|Match]] User <username> | [[Match (OpenSSH)|Match]] User <username> | ||
Line 19: | Line 18: | ||
* <code>[[systemctl restart sshd]]</code> | * <code>[[systemctl restart sshd]]</code> | ||
* <code>[[ChallengeResponseAuthentication]]</code> | * <code>[[ChallengeResponseAuthentication]]</code> | ||
+ | * <code>[[PermitRootLogin]]</code> | ||
== See also == | == See also == |
Latest revision as of 09:37, 10 October 2022
PasswordAuthentication
directive in sshd_config, default is yes
.
Examples[edit]
Match[edit]
Match User <username> PasswordAuthentication yes
PermitRootLogin[edit]
PermitRootLogin yes PasswordAuthentication no Match User root PasswordAuthentication yes
sed -i 's/PasswordAuthentication yes/PasswordAuthentication no/g' /etc/ssh/sshd_config && systemctl restart sshd
Related terms[edit]
See also[edit]
Advertising: