Knowledgebase

Enable root login over SSH

 
 
Enable root login over SSH: 
  1. login as user then sudo su 
  2. As root, edit the sshd_config file in /etc/ssh/sshd_config:
    nano /etc/ssh/sshd_config
  3. 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
  4. Save the updated /etc/ssh/sshd_config file.
  5. Restart the SSH server: 
    service sshd restart
  6. passwd (set a password for your root)
     

if you need support just open a ticket the support team will be happy to help

  • 0 Users Found This Useful
Was this answer helpful?
Copyright © 2024 Cheap Dedicated Servers. All Rights Reserved.