How do I ssh into my raspberry pi with ethernet with a Mac

Am trying to ssh into my raspberry pi I can do it fine with wifi connection on my phone, but I would want to ssh with ethernet on my Mac most guides I find are for either doing it with a windows or another linux ,I cant seem to get it working

Greetings, @Oluwatosin_Oseni!

So you can SSH into the Raspberry Pi using your Mac over Wi-Fi, but not over Ethernet?

Show us the exact commands you use or steps you take to SSH in over Wi-Fi, and then show us what steps you have taken in your attempt to get an SSH connection over Ethernet.

(Also, the Ethernet cable is plugged in on both ends, right? :slightly_smiling_face:)

LOl yes I connected them both via ethernet, when I do "ping username-desktop.local" when both devices are connected to same wifi I get a response and the IP address I can use to ssh ,but with just the ethernet cable connected ,I get "ping: cannot resolve username-desktop.local: Unknown host",is there some setting I need to do on the pi.

Do you have a router between the two devices which has firewalling capabilities and thus blocks the two devices from communicating with each other?

Nope I dont ,I used to use ethernet when i had rasbian all the time.its my phone hotspot I use to connect them now.

Show me a link to the directions you used to connect your Pi to the Mac using Raspbian.