Difference between revisions of "PasswordAuthentication"
Jump to navigation
Jump to search
| Line 19: | Line 19: | ||
* <code>[[ChallengeResponseAuthentication]]</code> | * <code>[[ChallengeResponseAuthentication]]</code> | ||
* <code>[[PermitRootLogin]]</code> | * <code>[[PermitRootLogin]]</code> | ||
| + | * <code>[[PubkeyAuthentication]]</code> | ||
== See also == | == See also == | ||
Latest revision as of 08:34, 1 July 2026
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: