login as root using SSH rpi

  • Login, and edit this file: sudo nano /etc/ssh/sshd_config
  • Find this line: PermitRootLogin without-password
  • Edit: PermitRootLogin yes
  • Close and save file
  • Set a root password if there isn’t one already: sudo passwd root
  • reboot or restart sshd service using: /etc/init.d/ssh restart