Difference between revisions of "PasswordAuthentication"

From wikieduonline
Jump to navigation Jump to search
(Created page with "{{Draft}} == See also == * {{sshd_config}} Category:OpenSSH")
 
 
(20 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Draft}}
+
<code>PasswordAuthentication</code> directive in [[sshd_config]], default is ''<code>yes</code>''.
  
 +
== Examples ==
 +
===Match===
 +
[[Match (OpenSSH)|Match]] User <username>
 +
    PasswordAuthentication yes
  
 +
===PermitRootLogin===
 +
[[PermitRootLogin]] yes
 +
PasswordAuthentication no
 +
[[Match (OpenSSH)|Match]] User root
 +
    PasswordAuthentication yes
 +
 +
 +
*<code>[[sed -i]] 's/PasswordAuthentication yes/PasswordAuthentication no/g' [[/etc/ssh/sshd_config]] && [[systemctl restart sshd]]</code>
 +
 +
== Related terms ==
 +
* <code>[[systemctl restart sshd]]</code>
 +
* <code>[[ChallengeResponseAuthentication]]</code>
 +
* <code>[[PermitRootLogin]]</code>
  
 
== See also ==
 
== See also ==
 
* {{sshd_config}}
 
* {{sshd_config}}
 +
* {{sshd}}
  
 
[[Category:OpenSSH]]
 
[[Category:OpenSSH]]

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


Related terms[edit]

See also[edit]

Advertising: