Hi!
I spent some time on this problem so as usually I decided to share my solution.
First of all update your packets.
sudo apt-get update
sudo apt-get upgrade
Then install this one:
sudo apt-get install avahi-daemon
Once the installation process is complete, you don’t even have to reboot the device. Your Raspberry Pi will begin immediately recognizing local network queries for its hostname (by default “raspberrypi“) at raspberrypi.local.
Ok. Now it’s time to set up our mac.
Go to Settings -> Sharing
Make sure that ‘internet sharing’ is ticked and in ‘computers using’ section tick ‘Ethernet’ or ‘ Thunderbolt ethernet’.
Connect your pi via LAN cable and power it on.
Now go to Settings -> network and make sure your Ethernet/ Thunderbolt ethernet connection has IPv4 configured ‘using DHCP’.
Now type in this command:
ping raspberrypi.local
And you should get output like this
Now we have our pi’s local ip so we can try to connect to it via SSH.
Try:
ssh pi@192.168.2.2
I hope this tutorial helped you 😉