Do you know about Linux? Linux is a mature and stable network operating system. This article describes how to solve the slow remote Logon of H in Linux. I believe many of my friends have abandoned telnet rlogin or X-window for security reasons when using the Linux operating system, and used openssh as their default remote logon method.
However, it is often the case that telnet to the server is fast, but the ssh connection is slow. It takes about half a minute or longer. Ping speed is also very good, people mistakenly think that the ssh connection is not good.
The most common reason for solving this problem is that the server's sshd will go to the DNS to find the hostname of the client IP address. If the DNS is unavailable or there are no relevant records, it takes a lot of time.
1. Add the ip address and hostname of your local machine to the/etc/hosts file on the server.
2. modify or add UseDNS = no to the/etc/ssh/sshd_config file on the server.
3. Comment out all rows in/etc/resolv. conf on the server.
4. Modify hosts in/etc/nsswitch. conf on the server to hosts: files
5. reboot server to make the configuration take effect
In addition
Authentication gssapi-with-mic may also cause problems. Modify GSSAPIAuthentication no in the/etc/ssh/sshd_config file on the server.
/Etc/init. d/sshd restart the sshd process to make the configuration take effect.
The above is the solution to slow remote logon to H in Linux.
- Easily connect to the campus network using Linux
- Fully Understand Linux Process Technology
- Introduction to the password command in Linux
- Learn about Linux regulatory commands
- How to view the ps-aux command of all processes in Linux