Recently, I received a RPI zero w for a potential side-project at work, mounted the latest raspbian image to it and set it up for ssh'ing via USB using this tutorial. I was unsuccessful in ssh'ing into it using my work laptop (2012, sierra, 15" screen) using the
ssh email@example.com command, and finally gave up. I keep getting the error message
ssh: Could not resolve hostname raspberrypi.local: nodename nor servname provided, or not known. When I got home, I attempted the same thing via my personal macbook (mid-2015, el capitan, 13") and I have no problem ssh'ing into the pi. Hopefully, I can just get it setup to connect automatically to the wireless network at work by adding it as a network in wpa_supplicants.conf, and then just ssh over the wireless network, but i fear that i'll need to initialize the connection using the
sudo ifup wlan0 command while in range of the network for that to work, which will require first ssh'ing via USB.
Regardless, I'd like to be able to ssh into the pi for machines other than my personal macbook. I attempted to ssh into on 3 machines at work, all of which i believe are running sierra, and have had no luck thus far. My guess is that this is macOS version related, but I'm not sure given the small sample size.
Is there some setting or other configuration I need to enable ssh over usb for other macbooks?
All I've essentially done to the headless raspbian(Stretch, version 9) image is:
touch sshin the boot directory
- add dtoverlay=dwc2 to the bottom of config.txt
- add modules-load=dwc2,g_ether after the rootwait setting in cmdline.txt