Skip to main content

SSH direct root logins

Comments

2 comments

  • SamuelM
    Hello @audrey The "SSH Password Authorization Tweak" sets the following line in /etc/ssh/sshd_config: PasswordAuthentication no
    It's not necessary to also update the PermitRootLogin option, as setting PasswordAuthentication no
    requires key-based authentication for the root user. Keep in mind however, that if you want to enable password-based authentication for any other SSH users on the server, setting PasswordAuthentication yes
    would enable password-based logins for the root user. It would be prudent, but not necessary, to set the PermitRootLogin line to PermitRootLogin without-password
    now in case you ever need to change the PasswordAuthentication at some point in the future. I hope you find this helpful!
    0
  • audrey
    Thanks Samuel Have a great weekend Take care Audrey
    0

Please sign in to leave a comment.