I'm running Raspbian Buster Lite on a board that I normally only access over SSH. The default login is pi/raspberry. I wanted to clear the password for convenience so I logged in and ran "sudo passwd -d root", which I often do on embedded linux systems. The command was accepted with the response "password expiry information changed" which is normal. However, now I am unable to log in over ssh with either a blank password or the original 'raspberry' password.
Is there a way to fix this or do I need to re-flash the memory card?
edit: I don't have a way to connect a monitor, so if I can't get in over SSH I'll have to wipe the memory card and start over. Which is not a huge deal, just a bit of wasted time.
edit2: Resolved now, after wiping the memory card.
sudo passwd -d pi
- your question sayssudo passwd -d root
... so which did you actually do?