Cannot start Remote Login (SSH) on macOS Catalina
A recent update for macOS Catalina (10.15) introduced a bug that prevents Remote Login (SSH) from starting or stopping if already stopped/started before the upgrade.
To turn it on manually via Terminal:
sudo launchctl load -w /System/Library/LaunchDaemons/ssh.plist
If that doesn’t work, you can run this in Terminal (which downloads a version of macOS Catalina without the bug present without erasing the drive, but we do recommend taking a backup before running this command):
curl -s https://raw.githubusercontent.com/grahampugh/erase-install/main/erase-install.sh | sudo bash /dev/stdin --os=10.15 --reinstall --cleanup-after-use --overwrite
This will take the Mac offline for 30-90 minutes, after which Remote Login can be enabled. Optionally, the mini can then be upgraded to the latest version of 10.15 if updates are available. However: the state of Remote Login probably won’t be able to be changed again until running one of the two commands above.