BeagleBone Black Root Access Step-by-Step

Hello all !
For those who are stuck in root login on Debian I’ve passed the last hours figuring out how to do it, and to help you guys which have the same problem here comes a quick guide:

PROBLEM: Be unable to access root on Debian 8

SOLUTION:

Login as: debian
Password: temppwd

Give the command:

sudo passwd root
Type a password for SUDO

Give the command:

su root

Type a password for root

Open SSH file to enable root login:

vim /etc/ssh/sshd_config

Change the line:
From:
PermitRootLogin wihtout-password
To:
PermitRootLogin Yes

Once you made the change,restart the SSH server
/etc/init.d/ssh restart

From now on you will be able to ssh login as a root

Any question you reach me up !

I’m a newbie and recently dusted off my BBB and updated to Debian 9. I followed the steps you listed for but instead instead of “PermitRootLogin without-password” it showed “PermitRootLogin prohibit-password”, so I changed it to “PermitRootLogin yes”. Now, when I try to SSH in and login as root, I tried using “root” as the password and got access denied. Any ideas?