1

I have forgotten my OctoPi SSH password. Now I want to install X server and browser for touch UI. How can I recover that password without deleting it all to the ground and reinstalling it?

Mołot
  • 801
  • 4
  • 14
  • Adding as a self-answer because I have spent way to much time trying to look it up. – Mołot Dec 01 '23 at 20:38
  • If you waited a few hours more I could answer it for you, I've had the same issues before and documented it in my personal notes. – Bob Ortiz Dec 02 '23 at 11:25

1 Answers1

1

foosel, Project Leader of OctoPrint, helpfully provided a solution just for us:

Turn off the Raspberry Pi and then:

Take the SD card out, put it in a card reader. Create a file octopi-password.txt on it, containing a new password as it's only line. Unmount, boot, login with the new password.

You can do it in Windows, because you need to put it on the Boot partition, the only one that mounts.

Bob Ortiz
  • 1,053
  • 1
  • 3
  • 29
Mołot
  • 801
  • 4
  • 14
  • 1
    Now keep in mind that this is a potential security issue: https://3dprinting.stackexchange.com/questions/19087/how-to-encrypt-wifi-password-in-octopi-wifi-config-file – Bob Ortiz Dec 02 '23 at 11:31