主要参考链接的第二大点:https://www.jb51.net/article/110041.htm
分别设置了服务器端和客户端:
客户端:
sudo vim /etc/ssh/ssh_config
Host *
ServerAliveInterval 30
服务器端:
vim /etc/ssh/sshd_config
ClientAliveInterval 60
ClientAliveCountMax 1
主要参考链接的第二大点:https://www.jb51.net/article/110041.htm
分别设置了服务器端和客户端:
客户端:
sudo vim /etc/ssh/ssh_config
Host *
ServerAliveInterval 30
服务器端:
vim /etc/ssh/sshd_config
ClientAliveInterval 60
ClientAliveCountMax 1