Difference between revisions of "PasswordAuthentication"

From wikieduonline
Jump to navigation Jump to search
Tags: Mobile web edit, Mobile edit
Line 1: Line 1:
 
{{Draft}}
 
{{Draft}}
 +
PasswordAuthentication directive in [[sshd_config]]
  
 
<code>PasswordAuthentication</code> default is ''yes''.
 
<code>PasswordAuthentication</code> default is ''yes''.

Revision as of 08:48, 6 October 2021

This article is a Draft. Help us to complete it.

PasswordAuthentication directive in sshd_config

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: