by Devin Yang

建立于: 4年前 ( 更新: 4年前 )

纪录我如何在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

Tags: MacOS

Devin Yang

文章内容无法一一说明,如果您有什么不了解处,欢印提问哦:)

No Comment

Post your comment

需要登入才可留言!

类似文章


macos

macOS上的say命令语音清单

如何在macOS上的终端机说国语,或是广东话呢? 点进来看看

cli,linux,macos

如何用find删除创建时间为准的旧文件

这功能很好用,但要很小心,先看再删,弄错目录会死很惨