UP | HOME

Fixing SSHD on Mac Mini

Been having an issue with my mac mini where I primarily use it via ssh. This is fine except that it pretty aggressively goes to sleep/idle and then the connection is kind of unresponsive. If I open a second terminal and ssh in again it will "wake up" the original session.

Fixed by adding to the mac mini sshd config /etc/ssh/sshd_config:

ClientAliveInterval 30
ClientAliveCountMax 5

And restarting

sudo launchctl stop com.openssh.sshd
sudo launchctl start com.openssh.sshd

Date: 2026-03-21 Sat 00:00

Author: joshj

Created: 2026-03-21 Sat 12:16

Validate