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 表示已启动
0 com.openssh.sshd