Difference between revisions of "PermitRootLogin"

From wikieduonline
Jump to navigation Jump to search
 
(3 intermediate revisions by 2 users not shown)
Line 2: Line 2:
  
 
  PermitRootLogin prohibit-password
 
  PermitRootLogin prohibit-password
 +
 +
PermitRootLogin yes
  
 
Values:
 
Values:
yes, prohibit-password, forced-commands-only, or no. The default is prohibit-password.
+
* <code>yes, prohibit-password, forced-commands-only, or no.</code>. Default value is <code>prohibit-password</code>.
 +
 
  
 +
[[rpl --backup]] "#PermitRootLogin prohibit-password" "PermitRootLogin yes" /etc/ssh/sshd_config && [[service ssh restart]]
  
  
Line 11: Line 15:
 
  Match User root
 
  Match User root
 
   [[PasswordAuthentication]] yes
 
   [[PasswordAuthentication]] yes
 +
 +
== Related ==
 +
* <code>[[service ssh restart]]</code>
  
 
== See also ==
 
== See also ==

Latest revision as of 13:38, 31 January 2024

PermitRootLogin in /etc/ssh/sshd_config file

PermitRootLogin prohibit-password
PermitRootLogin yes

Values:

  • yes, prohibit-password, forced-commands-only, or no.. Default value is prohibit-password.


rpl --backup "#PermitRootLogin prohibit-password" "PermitRootLogin yes" /etc/ssh/sshd_config && service ssh restart


PermitRootLogin yes
Match User root
  PasswordAuthentication yes

Related[edit]

See also[edit]

Advertising: