When I connect my Mac to the Raspberry Pi directly via an ethernet cable, in the terminal, I can type:
ssh pi@raspberrypi.local
No special configuration is required.
On my Ubuntu Linux machine, I cannot seem to find the address raspberrypi.local
on a direct Ethernet connection. On the other hand, if I connect to a MiFi device (which I have previously configured the Pi to connect to), I can find raspberrypi.local
and do a regular SSH into it. I am hesitant to do this, however, as I have the Pi recording data resulting in a large data file, which is slow to transfer via the MiFi device, and would much prefer an Ethernet connection.
I recognize that this is most likely a network connectivity issue. How do I go about troubleshooting this, and enabling my Ubuntu machine such that I can ultimately just type:
ssh (or scp) pi@raspberrypi.local
dhcpcd
allows routing over link-local addresses, but this is not used in Ubuntu. If the Ubuntu machine is connected to a networkpi@raspberrypi.local
should work over the network. I can certainly connect a Pi2 runningUbuntu MATE
to another Pi over the network. You could check if your Ubuntu machine haszero-conf
(I useavahi
for this - the Pi has it by default)pi@raspberrypi.local
works. However, it does not work as such when I try to connect the Pi to my Ubuntu box directly via Ethernet. Willzero-conf
allow for the direct connection setup? I will get back an answer in a few hours.link-local
address (usually169.something
), normally used for configuration. You canssh
to this from the Mac, not sure about Ubuntu. Another option is to useinet6 addr:
(alsolink-local
). Not all services work over these direct links.