免费注册 查看新帖 |

Chinaunix

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

怎么限制SSH客户端登陆的时间 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-07-08 09:07 |只看该作者 |倒序浏览
怎么限制SSH客户端登陆的时间?
就是说如果一段时间内没有任何操作的话.就直接断开与客户端的连接.

论坛徽章:
0
2 [报告]
发表于 2006-07-09 15:33 |只看该作者
在用户主目录下的配置文件中设置TMOUT=N秒

论坛徽章:
0
3 [报告]
发表于 2006-07-09 17:25 |只看该作者
还可设置一下ssh的配置文件
sshd_config里

论坛徽章:
0
4 [报告]
发表于 2006-07-13 12:38 |只看该作者
原帖由 heijieweb 于 2006-7-9 15:33 发表
在用户主目录下的配置文件中设置TMOUT=N秒


设置了.没反映

论坛徽章:
0
5 [报告]
发表于 2006-07-13 12:46 |只看该作者
#man sshd_config

     ClientAliveInterval
             Sets a timeout interval in seconds after which if no data has
             been received from the client, sshd will send a message through
             the encrypted channel to request a response from the client.  The
             default is 0, indicating that these messages will not be sent to
             the client.  This option applies to protocol version 2 only.

论坛徽章:
0
6 [报告]
发表于 2006-07-13 13:49 |只看该作者
原帖由 采风 于 2006-7-13 12:46 发表
#man sshd_config

     ClientAliveInterval
             Sets a timeout interval in seconds after which if no data has
             been received from the client, sshd will send a message throug ...

论坛徽章:
0
7 [报告]
发表于 2006-07-13 14:58 |只看该作者
原帖由 yttlovezxx 于 2006-7-13 12:38 发表


设置了.没反映


重新登录, 或,运行一下 .profile.
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP