发布时间: 2020-12-02 01:59:00
参考: https://www.cnblogs.com/chloneda/p/ssh-connect.html
vim /etc/ssh/ssh_config
增加下面2行
ServerAliveInterval 10ServerAliveCountMax 999
即可。 (10秒钟心跳一次)
sudo service ssh restart