Loading

ssh一段时间不操作卡死解决

痛点

使用ssh连接服务器,闲置一会shell就会卡死,很不方便。

解决

修改$HOME/.ssh/config添加

Host *
    ServerAliveInterval 60

每分钟发送保持连接请求,对所有host生效。

参考

linux - Keep SSH session alive - Stack Overflow

posted @ 2022-08-30 16:38  azureology  阅读(310)  评论(0)    收藏  举报