[英]authentication to github via jenkins error
我已将 Jenkins 安装到 Windows 10 机器上,并在尝试使用源代码管理部分中的用户名和密码凭据对 github 进行身份验证时收到以下错误:
Failed to connect to repository : ....
returned status code 128:
stdout:
stderr: Logon failed, use ctrl+c to cancel basic credential prompt.
remote: Invalid username or password.
fatal: Authentication failed ....
我能够将存储库克隆到 C:通过终端没有问题,我还设法在 macOS 上使用相同的凭据执行相同的设置,没有问题。 然而,我正在使用的 windows 机器正在通过 VPN 远程访问
我尝试使用 SSH 密钥对进行配置,但收到以下错误:
Unhandled Exception: System.TypeInitializationException: The type initializer for 'Microsoft.Alm.Cli.Program' threw an exception. ---> System.IO.FileLoadException: Could not load file or assembly 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies. The paging file is too small for this operation to complete. (Exception from HRESULT: 0x800705AF)
at AzureDevOps.Authentication.TokenScope.op_BitwiseOr(TokenScope left, TokenScope right)
at Microsoft.Alm.Cli.Program..cctor()
--- End of inner exception stack trace ---
at Microsoft.Alm.Cli.Program.Main(String[] args)
remote: Invalid username or password.
fatal: Authentication failed .....
任何帮助将不胜感激
谢谢
由于我试图访问的存储库有两个因素身份验证,因此这里的解决方案是在通过 HTTPS 访问时使用在 github 中生成的个人访问令牌而不是密码。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.