mac sshd服务
Commentssh服务是我们进行远程连接时,最常用的服务,不过一般情况下都是在linux上操作,那么mac上的ssh服务如何启动呢?
启动sshd服务:
1 | sudo launchctl load -w /System/Library/LaunchDaemons/ssh.plist |
停止sshd服务:
1 | sudo launchctl unload -w /System/Library/LaunchDaemons/ssh.plist |
检查启动情况:
1 | sudo launchctl list | grep ssh |
成功启动输出:
1 | -------------- |
- 本文作者:沙果栗子本文链接:https://32e.co/2020/06/27/shell-mac-sshd/版权声明:本博客所有文章除特别声明外,均采用 CC BY-NC-SA 3.0 CN 许可协议。转载请注明出处!