Raspbian
Enable SSH (see here):
sudo raspi-config
Then:
Enter sudo raspi-config in a terminal window
Select Interfacing Options
Navigate to and select SSH
Choose Yes
Select Ok
Choose Finish
Then:
https://ekuric.wordpress.com/2013/01/20/raspbian-wheezy-root-password/
Then:
https://raspberrypi.stackexchange.com/questions/48056/login-as-root-not-possible