Skip to content

Instantly share code, notes, and snippets.

@chengguizi
Last active May 1, 2019 20:24
Show Gist options
  • Save chengguizi/590a4621135da3ff720158f5e9b0b0d5 to your computer and use it in GitHub Desktop.
Save chengguizi/590a4621135da3ff720158f5e9b0b0d5 to your computer and use it in GitHub Desktop.
SSH into Raspberry Pi on Windows using "raspberrypi.local"

SSH into Raspberry Pi on Windows using "raspberrypi.local"

General Steps

  • Download the latest Raspbian OS image, and burn it into a micro SD card using Etcher.
  • Create a file "ssh" in the boot partition in your micro SD card, without extension! ( How to check file extensions? )
  • Insert the freshly prepared micro SD card into Raspberry Pi.
  • Power on Raspberry Pi.
  • Plug in Ethernet cable, connecting the Raspberry to the Windows machine. Verify the lights of Ethernet ports are blinking.
  • Open a cmd window, and verify ping raspberrypi.local returns "Reply from ..."
  • Open your favourite ssh terminal (e.g. MobaXterm) and type ssh pi@raspberrypi.local, password is raspberry.

What if the Ethernet ports aren't blinking?

This means physical connection problems, try re-inserting / replacing the Ethernet cable.

What if ping does not work? [ A VERY COMMON PROBLEM ]

To solve this:

  1. Install Apple Bonjour Service.
  2. Ensure the service is currently running, and is set to automatic. ( How to modify services? )Alt
  3. Do ping raspberrypi.local again to see if the problem is resolved.

What if ping works but not ssh?

Most probably your Pi is not set to enable SSH correctly. Make sure the "ssh" file you put into the boot partition is WITHOUT extensions (e.g. ".txt").

Successful SSH Looks Like This

Alt

To shutdown safely, please use sudo shutdown now and wait for the green light to go off.

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