zoukankan      html  css  js  c++  java
  • 解决scp/ssh提示输密码慢问题

    在我自己Ubuntu 9.10上测试通过,每次ssh到某一服务器上等待输入密码就特别慢,后来有一同事介绍了一个自动输入密码sshpass的工具,好用好用,关键登录还是要20秒左右,而在windows上面就没这问题,一登录就让输入密码了。

    找下原因,原来是一个GSSAPIAuthentication的权限验证,看Wiki介绍:


    The Generic Security Services Application Program Interface (GSSAPI, also GSS-API) is an [url=**en.wikipedia.org/wiki/Application_programming_interface]application 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 many similar but incompatible security services in use today.

    最后来了一句“but incompatible security services in use today”,看来暂时可以不要,还正也不安全。

    $ sudo vim /etc/ssh/ssh_config (把里面的GSSAPIAuthenticationn由Yes改为no)
    GSSAPIAuthentication no

    或者每次给加上参数-o GSSAPIAuthentication=no也可以,登录输入密码速度和Windows上一样了。

  • 相关阅读:
    HTML笔记
    Android自定义View 自定义组合控件
    CSS 笔记
    HTML 4.01 快速参考
    MSP430单片机之中断服务
    MSP430单片机之RTC实时时钟
    Centos7.4内核符号地址查找函数的BUG
    珍惜世上的五个人
    实习
    毕业后的五年拉开大家差距的原因在哪里
  • 原文地址:https://www.cnblogs.com/ylqmf/p/2909996.html
Copyright © 2011-2022 走看看