How do I configure Ubuntu to recognize raspberrypi.local?

How do I configure Ubuntu to recognize raspberrypi.local?

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


Answer 1:

It’s a naming issue in DNS resolving. Edit hosts file like in this tutorial add a line : raspberrypi.local

where is the IP address in your Pi. You can also try to use Bounjour multicast DNS, but it’s – IMHO – it’s a too overwhelming approach

Our Awesome Tools