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 !