Lost password now logged out how to reset or retrieve? [Solved]

I am trying to use PuTTY to ssh in into the Pi-hole terminal and also try to login to admin portal via the web browser interface.

So far, no luck with the password I thought I have created during setup.

Unfortunately it seems that Pi-hole has a different idea what my password should be.

Any idea how to reset or retrieve the password from my Windows computer?

By the way , this is the guide I followed and I think I screwed up somewhere regarding the password part

Thanks a million.

1 Like

By default your Login should be pi and the password should be raspberry

if that doesnt get you in then your best bet may be to start over as i have no idea what you might have changed it to

if you are talking about password for the web interface that can be set using the following command pihole -a -p newpassword where you replace newpassword with what you would like to use

Thanks for the reply.

Here is where I went wrong and I hope others can learn from my mistakes.

After running
pi@raspberrypi:~ $ sudo raspi-config

I changed the user password from raspberry to newpassword

I also changed the hostname from

pi@raspberrypi:~ $
to
pi@somethingelse:~ $

..........When I try to log in via SSH or via the web browser, I used:

login as: somethingelse
password: newpassword

..........Big mistake. As the correct login credentials should be

login as: pi
password: newpassword

..........In other words , I confused hostname with username (i.e. "login as")

..........One important point to remember is when you are still logged in by ssh to your RPi , you should go to your web portal in your browser and try to log in using the credentials you think you have , at

http://yourRPiipaddress/admin

If you cannot log in , then run this command to change to a password that works:

$ pihole -a -p Your_New_Password

Do not exit SSH until you have confirmed you can log into the Pi-hole admin portal in a browser.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.