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
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