I was trying to stop ssh from terminating after 10 minutes.
I followed an instruction here saying to modify a config file and restart the service with:
sudo launchctl stop com.openssh.sshd
Now ssh pi@12.34.567.89
just hangs.
I've reverted the config file and rebooted the machine but it still hangs.
How to fix?
PS sudo launchctl start com.openssh.sshd
+ another reboot also fails.
[pi@pis-iMac] ~
> launchctl list | grep ssh
- 0 com.openssh.ssh-agent
Best Answer
You may need to load the service again.