Ssh connection slow network error: conection refused

  
problem description: the machine and virtual machine ping normal, but use ssh login slow login problem and network error: conection refused problem to find reasons: 1, check the network situation 2, view the fire please, 3, view Because the port open information is a local area network (bridge mode), it is impossible that the network problem causes the login to be slow. It is faintly remembered that the login is slow caused by dns resolution. Today, look back at the data to solve this problem. Check the problem ssh -v *.*.*. * Solution: Edit /etc/ssh/sshd_config file 1. Modify GSSAPIAuthentication Change its yes to no. Let ssh directly use publickey authentication. 2. Add UseDNS no file. It seems that there is no oh, just add it to the tail. 3. Put PermitRootLogin Comment cancels its value as yes [this seems to be a partial version is good by default:-)] 4, restart ssh server /etc/init.d/ssh restart
Copyright © Windows knowledge All Rights Reserved