【问题标题】:Intermittent Authentication failed or partial success error间歇性身份验证失败或部分成功错误
【发布时间】:2022-10-20 20:42:28
【问题描述】:

我收到一个间歇性的Authentication failed or partial success. (1) 错误。

ChilkatLog:
  AuthenticatePw:
    DllDate: May 25 2017
    ChilkatVersion: 9.5.0.68
    UnlockPrefix: XXXXXXXXX
    Architecture: Little Endian; 64-bit
    Language: .NET 4.5 / x64
    VerboseLogging: 0
    login: XXXXXXX
    sshAuthenticatePw:
      requestUserAuthService:
        sendServiceRequest:
          svcName: ssh-userauth
          SentServiceReq: ssh-userauth
        --sendServiceRequest
        ssh-userauth service accepted.
      --requestUserAuthService
      AuthMethods: password
      passwordAuth:
        Sent login/password
        Authentication failed or partial success. (1)
        PartialSuccess1: 0
        AuthList: password
        important:
          This is likely a simple invalid login and/or password error,
          meaning your application did not send the correct login and/or password.
        --important
      --passwordAuth
    --sshAuthenticatePw
    Failed.
  --AuthenticatePw
--ChilkatLog

Authentication failed or partial success. (1) 中的 (1) 是什么意思?是AuthFailReason 提到的here

【问题讨论】:

    标签: chilkat chilkat-sshkey chilkat-ftp


    【解决方案1】:

    LastErrorText 旨在为快速解决问题提供信息。它包含开发人员了解问题原因可能需要的信息。在我们看来,它比晦涩的单行消息或错误代码要好得多。

    它还为 Chilkat 提供信息——因此,如果您向我们发送 LastErrorText,我们可以查看上下文,通常可以一步了解问题的原因和解决方案。 LastErrorText 中的某些行可能对应用程序开发人员来说是模糊的。没关系,因为它们是为我们准备的线条。

    在这种情况下,“身份验证失败或部分成功。(1)”行告诉 Chilkat 在内部代码中采用的执行路径。我们不必猜测。

    SSH 身份验证协议使得服务器可以使用 SSH2_MSG_USERAUTH_FAILURE 响应进行响应,但表示部分成功。在这种情况下,部分成功为 0(假),因此它指向一个硬故障——很可能是用户名和/或密码不正确的简单情况。

    还有一种可能性,这种可能性比较少。如果服务器也接受键盘交互,那么您可以设置 Ssh.UncommonOptions = "KeyboardInteractiveFollowup"(或 SFtp.UncommonOptions = "KeyboardInteractiveFollowup")以使 Chilkat 重试键盘交互请求。

    【讨论】:

    • PS> UncommonOptions = "KeyboardInteractiveFollowup" 的建议需要更新到最新版本的 Chilkat。我认为 v9.5.0.68 中不存在该选项
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2020-10-13
    • 2018-11-11
    • 2022-12-18
    • 1970-01-01
    • 2019-04-17
    • 2018-02-05
    • 1970-01-01
    相关资源
    最近更新 更多