ssh终端断开时间

sudo vim /etc/ssh/sshd_config

找到这两条,改时间为120(如果有#,那就删掉)

    ClientAliveInterval 120
    ClientAliveCountMax 120
sudo systemctl restart  sshd.service

猜你喜欢

转载自blog.csdn.net/u012993454/article/details/82592819