<p><a href="https://community.octoprint.org/u/foosel" rel="nofollow noreferrer">foosel</a>, Project Leader of OctoPrint, helpfully provided a <a href="https://community.octoprint.org/t/forgotten-username-and-password-to-ssh-into-pi/8839/7" rel="nofollow noreferrer">solution just for us</a>:</p>
<p>Turn off the Raspberry Pi and then:</p>
<blockquote>
<p>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.</p>
</blockquote>
<p>You can do it in Windows, because you need to put it on the Boot partition, the only one that mounts.</p>

CC BY-SA 4.0
2023-12-02T11:31:17.517Z
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
CC BY-SA 4.0
2023-12-01T20:29:12.197Z
2023-12-02T11:43:08.103Z
2023-12-02T11:43:08.103Z
Mołot
<p>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?</p>

CC BY-SA 4.0
2023-12-01T20:38:10.187Z
Adding as a self-answer because I have spent way to much time trying to look it up.
Mołot
CC BY-SA 4.0
2023-12-02T11:25:54.837Z
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
<octopi>
How to recover forgotten SSH password in OctoPi?
Mołot
# How to recover forgotten SSH password in OctoPi?

(Asked by: username_0 on 2023-12-01)

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?

**Tags:** octopi
> **Comments:**
> **username_0**: Adding as a self-answer because I have spent way to much time trying to look it up.  
> **username_1**: 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.  

---

## 1 answers

### Answer by username_0 on 2023-12-01. Score: 1

[foosel](https://community.octoprint.org/u/foosel), Project Leader of OctoPrint, helpfully provided a [solution just for us](https://community.octoprint.org/t/forgotten-username-and-password-to-ssh-into-pi/8839/7):

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.

> **Comments:**
> **username_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  

---

