Mac 本身有 ssh,只是没有默认开启,需要手动开启。
sudo launchctl load -w /System/Library/LaunchDaemons/ssh.plist
sudo launchctl unload -w /System/Library/LaunchDaemons/ssh.plist
sudo launchctl list | grep ssh
0 com.openssh.sshd
表示已启动
原文:https://www.cnblogs.com/ZweiZhao/p/9953016.html