解决ssh连接速度慢的问题
Debian默认设置下是开反向域名解析的。我们连接ssh/ftp的时候就会有一个比较明显的延时,大概要等30秒后才能输入账号密码。解决方法有两个:
1. 将客户机IP和域名对应关系加入到 /etc/hosts上
2. 编辑 /etc/nsswitch.conf
找到 hosts 那行,将其改成下面这样:
hosts: files dns [NOTFOUND=return]
I’d love to change the world,but they won’t give me the source code.
Caker, Web developer,Beijing,China.
My projects
Debian默认设置下是开反向域名解析的。我们连接ssh/ftp的时候就会有一个比较明显的延时,大概要等30秒后才能输入账号密码。解决方法有两个:
1. 将客户机IP和域名对应关系加入到 /etc/hosts上
2. 编辑 /etc/nsswitch.conf
找到 hosts 那行,将其改成下面这样:
hosts: files dns [NOTFOUND=return]