免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1284 | 回复: 1
打印 上一主题 下一主题

[网络管理] SSH 连接问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2013-01-08 15:29 |只看该作者 |倒序浏览
首先是我对这三个参数的理解,如果不对请指教

ClientAliveInterval
这个参数在服务器端配置。
比如配置 ClientAliveInterval 60 则服务器端每60秒对客户端发一次探测,客户端会自动回应


ClientAliveCountMax
这个参数在服务器端配置
比如配置 ClientAliveCountMax 5则服务器端会给客户端5次机会,就是判断一次超时后,不会马上断开连接,而是累计5次才断开。[fly]多长时间判断一次超时不知道[/fly]




ServerAliveInterval
这个参数在客户端配置
如果配置成 ServerAliveInterval 60 则是客户端每60秒去通知服务器一次,表示自己还存在

如果这3个的理解都正确,那么SSH上如何配置在一定时间断开一个idle的session呢? 比如有一个参数 IDLE_TIME 600 就是说过了600秒,10分钟,如果一个客户端还没有主动发来信息就关闭这个客户端

论坛徽章:
381
CU十二周年纪念徽章
日期:2014-01-04 22:46:58CU大牛徽章
日期:2013-03-13 15:32:35CU大牛徽章
日期:2013-03-13 15:38:15CU大牛徽章
日期:2013-03-13 15:38:52CU大牛徽章
日期:2013-03-14 14:08:55CU大牛徽章
日期:2013-04-17 11:17:19CU大牛徽章
日期:2013-04-17 11:17:32CU大牛徽章
日期:2013-04-17 11:17:37CU大牛徽章
日期:2013-04-17 11:17:42CU大牛徽章
日期:2013-04-17 11:17:47CU大牛徽章
日期:2013-04-17 11:17:52CU大牛徽章
日期:2013-04-17 11:17:56
2 [报告]
发表于 2013-01-08 15:38 |只看该作者
ClientAliveCountMax
             Sets the number of client alive messages (see below) which may be sent without sshd receiving any messages back from the client.  If this threshold is reached
             while client alive messages are being sent, sshd will disconnect the client, terminating the session.  It is important to note that the use of client alive
             messages is very different from TCPKeepAlive (below).  The client alive messages are sent through the encrypted channel and therefore will not be spoofable.
             The TCP keepalive option enabled by TCPKeepAlive is spoofable.  The client alive mechanism is valuable when the client or server depend on knowing when a con-
             nection has become inactive.

             The default value is 3.  If ClientAliveInterval (see below) is set to 15, and ClientAliveCountMax is left at the default, unresponsive ssh clients will be
             disconnected after approximately 45 seconds.
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP