SSH连接Debian出现延迟的解决方法

我用SecureCRT连接Debian的时候,间隔一段时间没去动,再切换回去的时候,输入总是会延迟,不过不是一直持续的延迟,只是刚连上去1-10秒的时间,虽然不是什么大的问题,但是总觉得很不舒服,google 了半天,问了一个同事,终于把问题解决了!
把nsswitch.conf里的hosts该成
hosts: files dns [NOTFOUND=return]

  1. debian:~# cat /etc/nsswitch.conf
  2. # /etc/nsswitch.conf
  3. #
  4. # Example configuration of GNU Name Service Switch functionality.
  5. # If you have the `glibc-doc-reference' and `info' packages installed, try:
  6. # `info libc "Name Service Switch"' for information about this file.
  7.  
  8. passwd: ***
  9. group: ***
  10. shadow: ***
  11.  
  12. hosts: files dns [NOTFOUND=return]
  13.  
  14. networks: ***
  15. protocols: ***
  16. services: ***
  17. ethers: ***
  18. rpc: ***
  19.  
  20. netgroup: ***


2 Comments

  1. 怎么没找到留言板之类的地方啊,只好留在这里了,链接做好,只做关于技术方面的呢 呵呵
    主人回复:Hi xdp,我做好你的友情链接啦,有空常联系哦!

  2. 支持下