PasswordAuthentication
Jump to navigation
Jump to search
PasswordAuthentication
directive in sshd_config
PasswordAuthentication
default is yes.
Match
Match User <username> PasswordAuthentication yes
PermitRootLogin
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: