How to SSH into your Raspberry Pi with a Mac and Ethernet Cable

Zheng Hao Tan
Dec 10, 2016 · 3 min read

First things first, get a ethernet cable.

Hook the cable up to your Raspberry Pi and Mac.

Power up the Raspberry Pi.

Next, we need to enable Internet Sharing.

Go to System Preferences -> Sharing.

Image for post
Image for post

Select Thunderbolt Ethernet (or whatever option that is being used as the ethernet connection).

Enable the Internet Sharing option if it isn’t already selected.

After that, open up System Preferences -> Network.

Image for post
Image for post
You should be able to see the Thunderbolt Ethernet option if you hooked it up correctly

You should be able to see that Using DHCP is selected by default. Use the dropdown menu to select this option if it’s not already selected.

Next, you should be able to see the Connected status on that same page, and an IP address should have been assigned to you.

Image for post
Image for post
My IP address in this case is 169.254.165.53

Go ahead and pull out your favorite terminal. I am a fan of iTerm, but the default Mac Terminal works just fine. You can find this by going to Applications -> Utilities -> Terminal.

Type in ifconfig, and you should see a bridge100 option.

Image for post
Image for post
bridge100 listed here after typing in ifconfig in the terminal

Look for the inet field. In this case, mine is 192.168.2.1. Yours might be different.

Next, type in

into the terminal. For my case, I would do

Image for post
Image for post
nmap

After you run this, there will be multiple scan reports that show up here.

Notice that the first one for me is 192.168.2.1, which is similar to what I have when I typed ifconfig. This is basically my local machine itself.

You want to select the other option, which is your Raspberry Pi. In my case, that’ll be 192.168.2.2

Image for post
Image for post
Go ahead and ssh into the Pi

Finally, go ahead and ssh into the Pi by typing

In my case, it’ll be

Type in your password, and if you did that correctly, yay, you’re in!

Congrats! You’re now connected to your Pi with just an ethernet cable :)

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store