1 post tagged with "linux"

View All Tags

ssh设置心跳 防止自动超时

Server Side

vim /etc/ssh/sshd_config

ClientAliveInterval 30
ClientAliveCountMax 60

systemctl restart sshd

Client Side

vim /etc/ssh/ssh_config

Host *
ServerAliveInterval 30
ServerAliveCountMax 60