High Sierra intermittent ssh failure

Since upgrading to High Sierra from El Cap, ssh has flaked out on my iMac. I can log in once to three times, then it ceases to respond. No error message, just no response; the client times out waiting. If I restart the machine, it resumes working, then the same pattern. It doesn't seem to matter whether I'm logging in from my other Mac, with keys rather than username/password, or my Linux machine using username and password. Anyone else experiencing this?

iMac (27-inch, Late 2013), macOS High Sierra (10.13.4)

Posted on May 15, 2018 8:20 PM

Reply
Question marked as Top-ranking reply

Posted on May 17, 2018 9:28 AM

Lee14 wrote:


BTW, when it ceases to respond to ssh, it won't even ping. Packets time out.


That's more than ssh, that's most likely network-level error.


Maybe a routing problem or a bad or misconfigured default route. Could be a failing network device, or misconfigured subnets, for instance. Could also be a more fundamental problem with the hardware or software in use here, too.


Are there any add-on anti-malware or add-on security tools around? If so, disable and/or remove those per the vendor instructions, and reboot through Safe Mode to flush and rebuild caches, and try again.


Is more than one network controller active on this iMac? Wired and Wi-Fi for instance? If so, is the Wi-Fi running as access points, or are there multiple IP subnets configured?


If Wi-Fi, see if migrating to a wired networking connection works more reliably. Wi-Fi networks can be harder to troubleshoot, and subject to interference.


Are you running macOS Server (the community where this question was posted), or is this High Sierra without Server.app around? Server can add a few wrinkles, such as DNS configuration errors.

3 replies
Question marked as Top-ranking reply

May 17, 2018 9:28 AM in response to Lee14

Lee14 wrote:


BTW, when it ceases to respond to ssh, it won't even ping. Packets time out.


That's more than ssh, that's most likely network-level error.


Maybe a routing problem or a bad or misconfigured default route. Could be a failing network device, or misconfigured subnets, for instance. Could also be a more fundamental problem with the hardware or software in use here, too.


Are there any add-on anti-malware or add-on security tools around? If so, disable and/or remove those per the vendor instructions, and reboot through Safe Mode to flush and rebuild caches, and try again.


Is more than one network controller active on this iMac? Wired and Wi-Fi for instance? If so, is the Wi-Fi running as access points, or are there multiple IP subnets configured?


If Wi-Fi, see if migrating to a wired networking connection works more reliably. Wi-Fi networks can be harder to troubleshoot, and subject to interference.


Are you running macOS Server (the community where this question was posted), or is this High Sierra without Server.app around? Server can add a few wrinkles, such as DNS configuration errors.

May 16, 2018 6:22 AM in response to Lee14

Do you have any firewall software or hardware installed between these two computers?

Have you enabled the macOS server firewall or is it still active after an upgrade?

Turn on the adaptive firewall in macOS Server - Apple Support


It looks some hardware or software sees the ssh activity as suspicious and blocks it after a couple attempts.


On my servers I don't experience such behaviour, but this post explains a bit more and a possible solution:

Re: Re: SSH server not working after upgrade to MacOS High Sierra (11.3)

Goodluck


Jeffrey

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

High Sierra intermittent ssh failure

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.