Sunday, 11 November 2018 00:00

Allow ssh root login on raspbian (raspberry pi)

Login to the pi (user: pi password: raspberry):-

login as: pi
This email address is being protected from spambots. You need JavaScript enabled to view it..***.***'s password:

Optionally Change the pi user password:-

pi@realtimepi:~ $ passwd
Changing password for pi.
(current) UNIX password:
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully

Set a root password:-

pi@realtimepi:~ $ sudo su
root@realtimepi:/home/pi# passwd
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully

Permit Root login over ssh

Edit /etc/ssh/sshd_config Change:-

#PermitRootLogin prohibit-password

to

PermitRootLogin yes

Done.

Last modified on Sunday, 11 November 2018 13:33

Leave a comment

Make sure you enter all the required information, indicated by an asterisk (*). HTML code is not allowed.