How were you able to install Pi-hole previously if you dont know user/password for Bash/desktop login or via SSH ?
If you lost those login details, only thing left is re-install Linux or hack your way in.
If its a Raspberry Pi with Raspbian installed, you could try the default username "pi
" with password "raspberry
".