client 端:
echo -e ' ServerAliveInterval 30' >> ~/.ssh/ssh_config
server 端:
echo -e ' ClientAliveInterval 30' >> /etc/ssh/sshd_config
service ssh reload
client 端:
echo -e ' ServerAliveInterval 30' >> ~/.ssh/ssh_config
server 端:
echo -e ' ClientAliveInterval 30' >> /etc/ssh/sshd_config
service ssh reload