Enable Root Access - Guilouz/Klipper-Flsun-Speeder-Pad GitHub Wiki

  • Connect in SSH and enter the following command (you will need to enter your user password):

    sudo -i
    
  • Then enter this command to change root password:

    passwd
    
  • Enter a password twice for the root user.

  • Then enter the following command:

    sudo nano /etc/ssh/sshd_config
    
  • Edit the file by replacing the line #PermitRootLogin prohibit-password by PermitRootLogin yes:

  • Then on your keyboard press the keys Ctrl + X to exit, Y to save and Enter to validate.

  • Enter this command to apply change:

    sudo service ssh restart
    
  • Log out of the current SSH session.

  • You can now login to SSH with root user rather than pi.