Permanent desks aren't really my thing. Coffee shops, libraries, and bars make me happier. Traveling makes me happiest.
But I have several machines plugged in at my fixed-location desk. All of which I need to be able to access from wherever I am. What to do? Well it's never before been a problem. Cuz, you know, SSH.
But this time is a bit different.
We're currently building a super cool device that needs to be plugged into my Raspberry Pi. But it's a bit finicky at this stage with regards to its boot order, needing to be power-cycled sometimes, etc. So offsite SSHing into my Pi, when using this device, is no longer an option. I need to be onsite. Which stinks. So thankfully Google answered the call yet again.
This solution is a simplified version of this tutorial I found here. And actually the simplification comes from one of the comments. So the sagest of internet advice appears to be wrong: DO read the comments... just not the YouTube ones.
- Connect your Pi to your Mac via ethernet. I had to use this adapter because Apple likes to make us buy new things.
- On your Mac, go to System Preferences -> Sharing and then make your screen look like the following. If you see an "Ethernet" option, use that. If not, select the "USB 10/100/1000 LAN option"
- Go to System Preferences -> Network, select the matching option from the previous step, eg "USB 10...", and it should look like the following. If your Pi is powered off you'll notice that the IP address and Subnet Mask fields are blank. In that case boot up your Pi, wait a few seconds, and they'll self-populate.
- Now connect to your Pi with
ssh pi@raspberrypi.local
, or if you want to enable trusted X11 forwarding, which is magical, ssh -Y pi@raspberrypi.local
. And obviously if your username or hostname are different for your Pi, then change those accordingly.
- Go drink some fancy lattes.
And then the yummy output: