mac下SSH很快被断开

解决方法:

1. 切换到root账号:sudo bash -c 'su - root'

2. 修改/etc/ssh_config文件

ServerAliveCountMax 5

ServerAliveInterval 30

原文地址:https://www.cnblogs.com/yuyue2014/p/5028517.html