Skip to content

Instantly share code, notes, and snippets.

@jannegpriv
Last active October 17, 2020 15:51
Show Gist options
  • Save jannegpriv/70c0d26ac4ad39aaa1cb23793414fcbf to your computer and use it in GitHub Desktop.
Save jannegpriv/70c0d26ac4ad39aaa1cb23793414fcbf to your computer and use it in GitHub Desktop.
WiFi and SSH access to Raspberry via SD card

Adding WiFi and SSH access to Raspberry via SD card

  1. Insert the SD card into a USB card reader, and plug it into your Mac
  2. Navigate to /boot partition using you OS file explorer (On MAC /Volumes/boot)
  3. Create a file on /boot named wpa_supplicant.conf
  4. Add the following content to the file:
country=SE # Your 2-digit country code
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
network={
    ssid="YOUR_NETWORK_NAME"
    psk="YOUR_PASSWORD"
    key_mgmt=WPA-PSK
}
  1. To add ssh support create a file named /boot/ssh

touch ssh

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