System Administration

Sunday, 31 October 2021 09:17

Enable root login over SSH

Written by 
Enable root login over SSH:

 As root, edit the sshd_config file in /etc/ssh/sshd_config:

  1. nano /etc/ssh/sshd_config
  2. Add a line in the Authentication section of the file that says PermitRootLogin yes. This line may already exist and be commented out with a "#". In this case, remove the "#".
    # Authentication:
    #LoginGraceTime 2m
    PermitRootLogin yes
    #StrictModes yes
    #MaxAuthTries 6
    #MaxSessions 10
  3. Save the updated /etc/ssh/sshd_config file.
  4. Restart the SSH server:
    service sshd restart
Read 5722 times