Slow SSH Login response

Source: Internet
Author: User

Http://xiaobin.net/201112/ssh-login-quite-slow/
There are two possible problems:

The first case is more common, and there are many materials mentioned that during SSH Login, the server will reverse parse the client's IP address, resulting in slow login response, generally, you can change "usedns no" of sshd_config.

In the second case, gssapi [1] is enabled on the server. During login, the client needs to reverse parse the IP address of the server. If the IP address of the server is not configured with PTR records, it is easy to get stuck here.

In this case, it is necessary to disable gssapi authentication to accelerate SSH Login. The following methods are available:

  1. Solution 1: use the additional parameter ssh-O gssapiauthentication = No server_address when using the SSH command
  2. Solution 2: Modify the client ssh_config (/etc/ssh/ssh_config or ~ /. Ssh/config): gssapiauthentication No
  3. Solution 3: Modify sshd_config (/etc/ssh/ssd_config) on the server: gssapiauthentication No

Refer:

  • [1]-gssapi
  • Disable SSH gssapi to speed up connection

Slow SSH Login response

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.