Difference between revisions of "PasswordAuthentication"
Jump to navigation
Jump to search
Tags: Mobile web edit, Mobile edit |
Tags: Mobile web edit, Mobile edit |
||
Line 12: | Line 12: | ||
[[Match (OpenSSH)|Match]] User root | [[Match (OpenSSH)|Match]] User root | ||
PasswordAuthentication yes | PasswordAuthentication yes | ||
+ | |||
+ | |||
+ | |||
+ | [[sed -i]] 's/PasswordAuthentication yes/PasswordAuthentication no/g' /etc/ssh/sshd_config && [[systemctl restart sshd]] | ||
== Related terms == | == Related terms == |
Revision as of 08:18, 21 April 2021
This article is a Draft. Help us to complete it.
PasswordAuthentication
default is yes.
Match User <username> PasswordAuthentication yes
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
See also
Advertising: