Thursday, March 3, 2011

Linux OS SSH remote login slow solution

A logon server ssh Taichung turnaround (Linux), is very slow, probably to 15 seconds or so, but ping soon, and sign in server load is very low.

This small problems have not noticed, today, leading sign when discovered this and gives the causes and solutions, the records here: on the destination server has a file/etc/nsswitch.conf, with the following line in the hosts: filesdns this line means for accessing the host domain name resolution in order to access the file,/etc/hosts file, if there is no record of the domain name in hosts, then access dns for domain name resolution, dns also cannot access will wait for access after return, timed out waiting for a long time. That if this line is shielding off also can achieve the same effect? should be, but if the machine you want to access by the domain name to a different server, you must not access this line should be required to be retained. This problem also prompt us to dns if unavailable, you will have some side effects.

No comments:

Post a Comment