Skip to content

Instantly share code, notes, and snippets.

@elalemanyo
Last active September 23, 2018 12:23
Embed
What would you like to do?
Headless Raspberry PI + SSH + Wifi (Raspbian Stretch)

1. Burn the Raspbian image to the SD card

2. Enable ssh

For security reasons, ssh is no longer enabled by default. To enable it you need to place an empty filed named ssh (no extension) in the root of the boot disk. touch /Volumes/boot/ssh

3. Add network info

Create a file in the root of boot called: wpa_supplicant.conf. Then paste the following into it:

country=US
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1

network={
    ssid="NETWORK-NAME"
    psk="NETWORK-PASSWORD"
}

4. Eject the micro SD card

5. Boot the Raspberry Pi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment