If you don't have a monitor, keyboard, and mouse connected to the device, you can still control the device remotely via SSH.
- Enable SSH on a headless Raspberry Pi (see section "Enable SSH on a Headless Raspberry Pi").
- Plug in an ethernet cable.
- Power on the Raspberry Pi.
- Find the Raspberry Pi IP address.
- If you prefer to use ethernet, skip to the next section.
- If you prefer to use Wi-Fi, first connect via USB-TTL.
- Connect to a Wi-Fi network using the command line.
- Find the Raspberry Pi IP address for the Wi-Fi connection.
- Re-connect via SSH using this Wi-Fi IP address.
- Get console access using a USB-TTL cable.
- Plug in an ethernet cable or connect to a Wi-Fi network using the command line.
Connect to the Raspberry Pi via SSH
To run commands on the Raspberry Pi, you need to open the terminal on the device or use an SSH connection. You must use an SSH connection from your development machine if you do not have a monitor, keyboard, and mouse connected to the Raspberry Pi.
Make sure SSH is enabled on the Raspberry Pi.
$ ssh email@example.com password: raspberry
On Raspbian, the default password for the
pi user is
raspberry. You should
change this password immediately (run
passwd in a terminal on the Pi).
Use the terminal or the SSH session you set up in this step to enter the
commands in the rest of this guide. The working directory for both is