统版本:macOS Catalina 10.15.7
启用和关闭远程登录时出错,无法从“共享”>“系统偏好设置”或“终端”启用远程登录,可以尝试用以下方法:
开启:
sudo launchctl load -w /System/Library/LaunchDaemons/ssh.plist
关闭:
sudo launchctl unload -w /System/Library/LaunchDaemons/ssh.plist
查看状态:
sudo systemsetup -getremotelogin
Remote Login: On