2

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
2

You may need to load the service again.

sudo launchctl load -w /System/Library/LaunchDaemons/ssh.plist
  • Still no luck, ps aux | grep ssh isn't reporting anything either. Do I need another reboot? – P i May 25 '17 at 8:35
  • @Pi Hmm, I've not had to reboot when using ‘load -w’ with other services, but you can try. If it doesn't work at all, my guess is that the change to the config file has broken ssh and it can't parse the file properly or something, but that's only a guess and I don't have enough knowledge of ssh specifically. – grg May 25 '17 at 8:40

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .