how to modify raspbian to allow passwordless root login?
Posted: Fri Apr 28, 2017 6:05 am
I want to be able to headless login as root and set password. So I try to
modify image of 2017-04-10-rasbian-jessie-lite.img by using
mount -v -o offset=blah blah blah
So far I've changed image as follows:
* Added empty ssh file to boot partition -- this does make ssh in possible as pi@192.168.1.whatever
* Changed /etc/passwd line for root by removing x from second field (replacing it with nothing)
* Changed /etc/ssh/sshd_config by changing these lines:
* PermitRootLogin without-password to PermitRootLogin yes
* PermitEmptyPasswords no to PermitEmptyPaswords yes
However ssh root@p192.168.1.103 still prompts for a password and say Permission denied when I enter nothing.
What more is required?
Thanks,
Britton
modify image of 2017-04-10-rasbian-jessie-lite.img by using
mount -v -o offset=blah blah blah
So far I've changed image as follows:
* Added empty ssh file to boot partition -- this does make ssh in possible as pi@192.168.1.whatever
* Changed /etc/passwd line for root by removing x from second field (replacing it with nothing)
* Changed /etc/ssh/sshd_config by changing these lines:
* PermitRootLogin without-password to PermitRootLogin yes
* PermitEmptyPasswords no to PermitEmptyPaswords yes
However ssh root@p192.168.1.103 still prompts for a password and say Permission denied when I enter nothing.
What more is required?
Thanks,
Britton