SSH stopped working

March 5, 2023, 09:33

YellowDot

Hey guys, so I was testing pm2 commands to keep my server running 24/7 and I just ssh into my pi from my windows pc by this format in terminal: ssh name@hostname.local I also login this wаy: ssh name@hostname What I have realized is that it works sometimes and it’s driving my crazy!! How do I fix this?

YellowDot

Like it says could not resolve hostname and: no such host is known.

illegitimate_egg

Your DHCP server is... well there's something wrong with it

YellowDot

Should I make my rpi have a static IP address? I also have an Xfinity router

YellowDot

But the website using the pi’s private ip works, just not ssh

YellowDot

Maybe I’ll just figure this out later. If all else fails, I’ll just reinstall the OS and I’ll assume it’ll work

oops.se

´´´hostname.local´´´ and ´´´hostname´´´ is using mDNS (Multicast DNS) and windows mDNS support isn't that stable. I have similar problems from Windows computers but not on my Linux machines.