This on a 2017 iMac running Big Sur (11.6) with OpenSSH_8.1p1, LibreSSL 2.7.3.
I sometimes have a need to log in to this machine remotely. I have forwarded the port appropriately.
But, sometimes I get a "connection refused" error. This can be remedied by the following:
sudo launchctl unload /System/Library/LaunchDaemons/ssh.plist
sudo launchctl load -w /System/Library/LaunchDaemons/ssh.plist
If I'm away home, there's no way for me to run this. So, I'm trying to find out why reloading the daemon is necessary and if there's anything I can do to keep the daemon running.