BeagleBone Black Root Access Step-by-Step

34 views
Skip to first unread message

cesar.te...@gmail.com

unread,
Jun 12, 2017, 7:26:33 AM6/12/17
to BeagleBoard
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 !

Mark Graves

unread,
Feb 11, 2018, 8:12:30 AM2/11/18
to BeagleBoard
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?
Reply all
Reply to author
Forward
0 new messages