Mac下如何重启SSH
killall -HUP sshd
停止
$ sudo launchctl unload /System/Library/LaunchDaemons/ssh.plist
Password:
启动
$ sudo launchctl load -w /System/Library/LaunchDaemons/ssh.plist
查看
$ sudo launchctl list | grep sshd
- 0 com.openssh.sshd