> For the complete documentation index, see [llms.txt](https://marlin.3dwork.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://marlin.3dwork.io/octoprint/instalacion/instalando-octoprint/reset-password.md).

# Reset Password

## Restablecer el password de acceso SSH

En ocasiones si hemos cambiado el password de acceso a nuestra Pi puede que nos olvidemos, a continuación tienes diferentes alternativas para resetearlo

### Prueba el usuario/password por defecto primero :)

Antes de comenzar con otros procesos lo ideal es verificar que no tengamos el de por defecto :D usaremos **pi como usuario y raspberry como password**.

### Reseteo password modificando la SD

Podemos crear un fichero octopi-password.txt en el volumen boot con el nuevo password que deberia aplicarse al reiniciar nuestra Pi y permitirnos de nuevo el acceso:

* Desde Linux o el terminal de MAC y con la SD insertada en nuestro ordenador:

```bash
cd /Volumes/boot
ls config.txt # para asegurarnos que estamos en el sitio adecuado
sudo echo "mypassword" > ./octopi-password.txt
```

* Desde Windows y con la SD insertada en nuestro ordenador:

```
Abrimos el administrador de archivos y abrimos la unidad boot que deberia salirnos al insertar la SD
Creamos un fichero, en el mismo lugar que el config.txt, llamado octopi-password.txt
Editamos ese fichero octopi-password.txt y ponemos ahí nuestro nuevo firmware
```

## Restablecer password interfaz web Octoprint

Si hemos olvidado el password del interfaz web de **Octoprint** accederemos por SSH a nuestra Pi y tendremos dos opciones dependiendo de como se instaló **Octoprint**:

* **Si usamos la imagen de OctoPi**

```
rm ~/.octoprint/users.yaml
sed -i -e 's/firstRun: false/firstRun: true/g' ~/.octoprint/config.yaml
sudo service octoprint restart
```

{% hint style="info" %}
Si instalamos Octoprint en **Windows** el fichero se encuentra en:

`%APPDATA%\OctoPrint\users.yaml` and `%APPDATA%\OctoPrint\config.yaml`

` En el caso de`` `` `**`MacOS`**`:`

`~/Library/Application\ Support/OctoPrint/users.yaml` `~/Library/Application\ Support/OctoPrint/config.yaml` .
{% endhint %}

* **Si lo instalamos de forma manual**

```
Borrar ~/.octoprint/users.yaml
En ~/.octoprint/config.yaml:
- sustituir firstRun: false por firstRun: true
Reiniciar Octoprint
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://marlin.3dwork.io/octoprint/instalacion/instalando-octoprint/reset-password.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
