I have an RPi that I have forgotten the password to. I have history on the ubuntu command line on my PC of ssh logins and I was hoping there would be a way to get text history entered into to try to find my password. If not is there a way to recover an RPi password? I am running Ubuntu Server (not Raspbian) and was unable to access GRUB.
Earlier I was using the history
command but that only shows the ssh commands and not the details entered in.
Any help would be massively appreciated!
EDIT - Some solutions don't work because they are for the Raspberry Pi 3B and below and I have a Raspberry Pi 4B
EDIT - I have found a solution thanks to a friend of mine, I will put an answer below. Thanks to everyone who helped me :)