Difference between revisions of "PermitRootLogin"

From wikieduonline
Jump to navigation Jump to search
Line 1: Line 1:
* <code>PermitRootLogin</code> in <code>[[/etc/ssh/sshd_config]]</code> file
+
<code>PermitRootLogin</code> in <code>[[/etc/ssh/sshd_config]]</code> file
  
 
  PermitRootLogin prohibit-password
 
  PermitRootLogin prohibit-password

Revision as of 09:38, 10 October 2022

PermitRootLogin in /etc/ssh/sshd_config file

PermitRootLogin prohibit-password

Values:

yes, prohibit-password, forced-commands-only, or no.  The default is prohibit-password.


PermitRootLogin yes
Match User root
  PasswordAuthentication yes


See also

Advertising: