Difference between revisions of "PermitRootLogin"

From wikieduonline
Jump to navigation Jump to search
Line 8: Line 8:
 
* <code>yes, prohibit-password, forced-commands-only, or no.</code>. Default value is <code>prohibit-password</code>.
 
* <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 16: Line 18:
 
== Related ==
 
== Related ==
 
* <code>[[service ssh restart]]</code>
 
* <code>[[service ssh restart]]</code>
 
  
 
== See also ==
 
== See also ==

Revision as of 13:37, 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

See also

Advertising: