linux远程跳板机超时
生活随笔
收集整理的這篇文章主要介紹了
linux远程跳板机超时
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
1.連接主機修改sshd配置文件去掉注釋
?vim /etc/ssh/sshd_config
ClientAliveInterval 30 #122行 多少秒檢測 ClientAliveCountMax 45435 #123行 多少秒超時重啟
[root@localhost ~]# service sshd restart
Redirecting to /bin/systemctl restart sshd.service
2.被連接主機也同樣修改
?vim /etc/ssh/sshd_config
ClientAliveInterval 30 #122行 多少秒檢測 ClientAliveCountMax 45435 #123行 多少秒超時重啟
[root@localhost ~]# service sshd restart
Redirecting to /bin/systemctl restart sshd.service
總結
以上是生活随笔為你收集整理的linux远程跳板机超时的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: kubernetes资源控制与及ingr
- 下一篇: shell脚本安装mysql并安装一个小