在 Gitlabee 中有一個我總是使用的存盤庫。當我git pull origin modal_control在 git bash 中嘗試 ' ' 時,openSSH 選項卡會打開并詢問我的用戶名和密碼。
我輸入了用戶名和密碼。但是 git bash 給了我這個輸出:
$ git pull origin modal_control
remote: HTTP Basic: Access denied
remote: You must use a personal access token with 'read_repository' or
'write_repository' scope for Git over HTTP.
remote: You can generate one at
https://gitlabee....com/-/profile/personal_access_tokens
fatal: Authentication failed for 'https://gitlabee....com/__repository_name__'
我創建了訪問令牌和 SSH 密鑰,但它仍然無法正常作業
uj5u.com熱心網友回復:
仔細檢查您使用的用戶名:SSH 不應要求提供用戶名/密碼,因為 GitLab EE 僅使用技術服務帳戶“ git”(其密碼無論如何都不公開)
由于對 HTTPS URL 的身份驗證失敗,因此根本不應該涉及 SSH,并且詢問的用戶名確實是您的 Gitlabee 帳戶名。
這意味著您必須輸入您的Gitlabee 令牌 (PAT)作為密碼,而不是您的實際密碼。
這意味著一旦您創建了 PAT,您就可以在提示輸入密碼時將其用作密碼。
uj5u.com熱心網友回復:
解決方案:您必須在 gitlabee 中創建訪問令牌。然后,您可以再試一次。打開 openSSH 選項卡時,usurname 是訪問令牌名稱,密碼是訪問令牌密碼。
轉載請註明出處,本文鏈接:https://www.uj5u.com/net/355195.html
標籤:混帐 验证 opensh 拒绝访问 gitlab-ee
上一篇:Git洗掉添加的大檔案提交
