SSH Between OSX and Raspberry Pi

Use SSH so you can operate your Pi in “headless” mode:  no monitor, keyboard or mouse required.  Adafruit has covered this at length, but here are my personal notes on one page.

From RPi

  1. Connect RPi to modem via Ethernet cable.  Connect a keyboard, mouse and monitor too.
  2. Power on the RPi.
  3. If it’s your first time booting, you can search through the setup menu to enable SSH.
  4. If you’ve already booted up before, open up the Terminal application and type sudo raspi-config
  5. SSH > Enable

From OSX

  1. Connect your computer to the same network (wired or wireless).
  2. Determine the IP address of your RPi.  Steps will vary based on your modem.  If I type the IP address on the side of my modem into a web browser, I can find an option to list all device IPs that are currently connected.  Here’s another method that I haven’t tested.
  3. Open the OSX terminal (Applications > Utilities).  Be aware that you can do some major file/systems damage if you’re not careful.
  4. Type  ssh [device IP] -l [device name] .  Replace the bracketed text and delete the brackets.  The RPi is named “pi” by default.
  5. When prompted, enter the RPi password.  It’s “raspberry” by default.  You won’t see any cursor activity as you type – this really confused me the first time around.

Leave a Reply