簡體   English   中英

git憑據助手不起作用

[英]git credential helper not working

我正在嘗試保存我的git密碼,以避免每次輸入。

我在Windows 10上使用git bash。

每次我碰到遙控器時,git都會繼續要求輸入密碼。

(git bash為什么不起作用?)

我努力了:

git config --global credential.helper 'cache --timeout 28800'

和:

git config --global credential.helper store

和:

git config --global credential.helper wincred

我已經在git bash和cmd中都嘗試過,所以我想它不是git bash引起的問題。

首先,對於Windows,要使用的憑據幫助程序是manager

git config --global credential.helper manager

其次,這僅適用於HTTPS URL,而不適用於SSH URL( user@server.com

對於SSH,它可以是:

  • 由於您的私密SSH密鑰受密碼保護,因此要求輸入密碼。
    如果是這種情況,請檢查ssh-agent:請參閱“ 將SSH密鑰添加到ssh-agent中
  • 詢問matt的密碼,因為它沒有在遠程服務器~matt/.ssh/authorized_keys上找到您的~matt/.ssh/authorized_keys

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM