【问题标题】:Jenkins GitHub connectivity error - Your account is suspendedJenkins GitHub 连接错误 - 您的帐户已暂停
【发布时间】:2021-07-08 23:25:36
【问题描述】:

我正在尝试从 Jenkins 连接到 GitHub Enterprise,但我遇到了连接问题 -

Failed to connect to repository : Command "/usr/bin/git ls-remote -h git@xxx/yyy.git HEAD" returned status code 128:
stdout: 
stderr: ERROR: Your account is suspended. Please check with your installation administrator.
fatal: The remote end hung up unexpectedly

有趣的是,我使用的帐户能够登录 GitHub 并且没有被暂停。我尝试同时使用 SSH 和密码都无济于事。任何线索将不胜感激。

【问题讨论】:

  • 我在使用 VSTS(Visual Studio 团队服务)时遇到了同样的问题
  • 我记得这个问题的解决方案仅与密码有关。我们为连接创建了新的公私密钥并解决了问题。

标签: github jenkins credentials


【解决方案1】:

这是过期 SSH 密钥的问题。我不得不重新生成它,它又开始工作了。

【讨论】:

    【解决方案2】:

    就我而言,这是 GHE 运营商方面的问题。他们改变了一些东西,我的帐户又开始工作了。您也可以尝试更改您的 PAT,但这可能表明存在另一个问题。

    看到这个:VSTS issues connecting to GHE (HTTP 403)

    【讨论】:

      【解决方案3】:

      我清除了存储在 github 的钥匙串访问中的所有密钥。然后给了我的凭证 agian 从 repo 中提取。

      【讨论】:

        【解决方案4】:

        就我而言,我删除了 ~/.gitconfig 并且它起作用了。

        【讨论】:

          【解决方案5】:

          删除您之前的 github SSH KEY 并生成一个新的。

          ssh-keygen -t rsa -b 4096 -C <emailId>

          【讨论】:

            猜你喜欢
            • 1970-01-01
            • 1970-01-01
            • 1970-01-01
            • 2016-04-12
            • 2020-11-01
            • 1970-01-01
            • 1970-01-01
            • 2012-09-25
            • 1970-01-01
            相关资源
            最近更新 更多