建立于: 3年前 ( 更新: 3年前 )
纪录我如何在MacOS上重启sshd服务。
#ssh进入远程的MAC,运行不会断线,可以分开运行,unload时不可注销,不然再也连不进去,
sudo launchctl unload /System/Library/LaunchDaemons/ssh.plist
sudo launchctl load -w /System/Library/LaunchDaemons/ssh.plist
#可以一行搞定unload跟load
sudo launchctl unload /System/Library/LaunchDaemons/ssh.plist&&sudo launchctl load -w /System/Library/LaunchDaemons/ssh.plist
No Comment
Post your comment