3
How to restart SSH in Mac Pro?
When I used: sudo service ssh restart
its shows:
Command not found
3
How to restart SSH in Mac Pro?
When I used: sudo service ssh restart
its shows:
Command not found
2
Try with:
sudo launchctl unload /System/Library/LaunchDaemons/ssh.plist
sudo launchctl load -w /System/Library/LaunchDaemons/ssh.plist
1This is a System V command that macOS does not have. What do you want to achieve, really? Are you experiencing any issues with SSH logins? – slhck – 2019-10-01T12:16:22.670
Furthermore, macOS manages
sshd
differently enough that there's no real equivalent to "restart"ing the service. More specifically, a new server process is started for each incoming connection on port 22; this means that if there's no active ssh connection, there's nothing running to restart (and if there is one, you probably don't want to kill it). So... yeah, what's the actual goal here? – Gordon Davisson – 2019-10-01T17:42:41.707