Solve the problem of slow password input when SCP/ssh prompts

Source: Internet
Author: User

I passed the test on my own Ubuntu 9.10. Every time I SSH to a server, it is very slow to wait for the password to be entered. Later, a colleague introduced an sshpass tool that automatically entered the password, it takes about 20 seconds to log on to windows. You can enter the password when you log on to Windows.

Find the reason. It turns out to be a gssapiauthentication permission verification. Refer to the Wikipedia introduction:

TheGeneric Security Services application program interface(Gssapi, AlsoGSS-API) Is an [url = ** your programming interface [/url] for programs to access [url = ** en.wikipedia.org/wiki/security#security#/url] services.
The gssapi is an [url = ** en.wikipedia.org/wiki/ietf?ietf=/url] standard that addresses the problem of your similar but incompatible security services in use today.

The last line is "but incompatible security services in use today". It seems that it is not safe for the moment.

$ Sudo Vim/etc/ssh/ssh_config (Change gssapiauthenticationn from yes to no)
Gssapiauthentication No

Alternatively, you can add the parameter-O gssapiauthentication = No each time. The login password input speed is the same as that on Windows.

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.