# Enable SSH and first access

By default, access via ssh is not enabled on your Raspberry. To change this, insert the SD card into your computer’s card reader, go to the root of the **boot** partition and place an empty file with the name **ssh**.&#x20;

```bash
touch ssh
```

Once this is done, insert the SD card back into the Raspberry and connect it to your LAN using an Ethernet cable.

## First access

Now, time to ssh into the raspberry for the first time! To do so, we need the private IP of the Raspberry, which you can find looking into your local network in the router preferences or using tools such as **Nmap**. Once known, you can ssh using the default credentials:

| field      | value     |
| ---------- | --------- |
| `user`     | pi        |
| `password` | raspberry |

{% hint style="info" %}
[Nmap](https://nmap.org/) is a free and open-source network scanner created by Gordon Lyo.
{% endhint %}

```bash
ssh pi@${PRIVATE_IP}
```

Once connected, [look for updates](https://howchoo.com/pi/update-raspberry-pi-raspbian).

```bash
sudo apt-get update
sudo apt-get upgrade --yes
```

Finally, restart your raspberry

```bash
sudo reboot
```


---

# 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://notes.lcsrg.me/home-setup/raspberry/first-access.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.
