发新帖

Mac下如何重启SSH

零下一度 2021-7-15 1085

Mac下如何重启SSH


killall -HUP sshd

停止

$ sudo launchctl unload  /System/Library/LaunchDaemons/ssh.plist

Password:

 

启动

$ sudo launchctl load -w /System/Library/LaunchDaemons/ssh.plist

 

查看

$ sudo launchctl list | grep sshd

- 0 com.openssh.sshd 


最新回复 (0)
返回
零下一度
主题数
931
帖子数
0
注册排名
1