Chinaunix首页 | 论坛 | 博客
  • 博客访问: 5699679
  • 博文数量: 675
  • 博客积分: 20301
  • 博客等级: 上将
  • 技术积分: 7671
  • 用 户 组: 普通用户
  • 注册时间: 2005-12-31 16:15
文章分类

全部博文(675)

文章存档

2012年(1)

2011年(20)

2010年(14)

2009年(63)

2008年(118)

2007年(141)

2006年(318)

分类: LINUX

2009-09-29 19:51:34

中心网络十分糟糕,ssh连接经常掉线,有丢包的问题,也有ssh因为无动作掉线的原因。就给所有的服务器加上了KeepAlive支持,省的因为ssh掉线影响工作的心情,不过连上之后,为了防止意外发生,还是使用screen来管理远程会话;-)

服务器端配置

修改/etc/ssh/sshd_config
TCPKeepAlive yes
ClientAliveInterval 60

客户端配置
修改/etc/ssh/ssh_config
TCPKeepAlive yes
ServerAliveInterval 60


参考:
http://blog.tarotoast.com/2008/04/20/433/
http://www.ilikeblog.com/user1/1/archives/2007/1392.html
阅读(3649) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~