> For the complete documentation index, see [llms.txt](https://notes.lcsrg.me/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://notes.lcsrg.me/home-setup/raspberry/first-access.md).

# 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
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, and the optional `goal` query parameter:

```
GET https://notes.lcsrg.me/home-setup/raspberry/first-access.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
