zoukankan      html  css  js  c++  java
  • ubuntu下ssh超时时间配置

    Linux下设置超时时间,是在配置文件/etc/profile里。在该文件下,添加一个变量:

    export TMOUT=3600

    时间单位是S,上面配置的超时时间是1个小时。

    另外,在ssh配置文件/etc/ssh/sshd_config中,将ssh的保活配置打开:

    ClientAliveInterval 300

    ClientAliveCountMax 3

    意思是5分钟检查一次客户端响应,最多检查3次。如果3次都检查到客户端不响应,那么就认为ssh已经断开了。

    转自飞鱼厅

  • 相关阅读:
    vue
    vue
    vue
    vue
    vue
    vue
    vue
    vue
    vue
    vue
  • 原文地址:https://www.cnblogs.com/dsynb/p/14894031.html
Copyright © 2011-2022 走看看