I bought Freedombox two days ago and it arrived, I connected it with an Ethernet cable to the router and it was turned on and updated and everything was fine and I was able to communicate with it via SSH but after I restarted it and tried to access it via SSH it shows me the wrong password and when I enter via the browser on the Cockpit terminal everything works the password is correct and then I modified the file /etc/nslcd.conf and replaced
uri ldapi:///
to
uri ldap://localhost
and restarted LDAP
sudo systemctl restart nslcd
but after that, I could not access the sudo privilege and after logging out and restarting Freedombox I tried to add a user via plinth
but I got an error knowing that the user was added, but maybe it was not added correctly
And when I tried to enter Cockpit, it shows me an error in the password or username
The question is, how can I log in with root via SSH because I do not know the root password number?
How can I restore the system to normal via browser?