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

需要登入才可留言!

类似文章


vpn,cli,macos

我如何在MacOS上用命令行拨VPN

我自己会有用MacOS在命令行拨VPN的需求,在这提供我的别名,设置方式

macos

macOS上的say命令语音清单

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

MacOS

找MacOS的ip位置

如何找寻Mac的位置