# Raspberry Pi

[Sinip](https://sinip.tech) te permite administrar tus Raspberry Pi de forma remota y **sin IP pública**.

## Pre requisitos

Para empezar a administrar tus Raspberry Pi de forma remota necesitas:

* Uno o más dispositivos Raspberry Pi a usarse como `Dispositivo de red remoto`
* Una PC o Smartphone a usarse como `Dispositivo Administrativo`
* Una llave (archivo \*.ovpn) descargada desde tu [cuenta Sinip](https://my.sinip.tech)

{% hint style="danger" %}
Recuerda que las llaves te permiten conectar dispositivos a tu red *Sinip*, no se las des a nadie!
{% endhint %}

## Conectar un dispositivo Raspberry Pi a tu red Sinip

Ingresa al Raspberry Pi mediante SSH con el usuario "pi" (La contraseña por defecto es "raspberry"), desde Windows puedes usar la herramienta [putty](https://putty.org), desde Linux puedes usar la línea de comando:

```
$ ssh <IP del Raspberry Pi> -l pi
```

Una vez dentro del Raspberry Pi, ejecuta los siguientes comandos:

```
$ sudo apt-get update
$ sudo apt-get install openvpn
```

Descarga una llave desde tu [cuenta Sinip](https://my.sinip.tech) y copiala al Raspberry Pi usando *putty* desde Windows o desde Linux con el comando:

```
$ scp <nombre de la llave>.sinip.ovpn pi@<IP del Raspberry Pi>:/home/pi/llave.sinip.ovpn
```

{% hint style="warning" %}
Para cada dispositivo que se configure, es necesario utilizar una `llave` distinta.
{% endhint %}

Luego, en el Raspberry Pi, conecta a la red Sinip ejecutando el comando:

```
$ nohup openvpn /home/pi/llave.sinip.ovpn &
```

## Administrar un dispositivo Raspberry Pi de forma remota

Una vez que tu dispositivo Raspberry Pi esté conectado a tu red *Sinip*, puedes administrarlo remotamente desde una PC administrativa usando [putty](https://putty.org) desde Windows o SSH desde Linux, con los mismos usuarios y contraseña, pero con la IP *Sinip* del Raspberry Pi.


---

# Agent Instructions: 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://docs.sinip.tech/sinip/configurar-dispositivos-remotos/raspberrypi.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.
