昨天晚上出现的这个问题,今天晚上又出现了,很奇怪,这个问题在stackoverflow上都没看到很好的解答,我修改了sshd_config的MaxStartups 10为30也不行,需要重新启动sshd服务吗,网上说unload之后再load可以重启,但是我用了
launchctl unload /System/Library/LaunchDaemons/ssh.plist
说Could not find specified service,所以就也没重启成功。
ssh -t xx@xxx -p 22 后,卡半天,最后就是提示
Connection closed by xxxxx(ip) port 22
检查防火墙
ssh服务是否启动