-1
我一直在使用hg-git,直到這一點,推動和拉我的git回購與mercurial。今天,我突然收到以下錯誤:hg-git推抱怨公鑰
❯ hg push
pushing to git+ssh://[email protected]/User/myrepo.git
Permission denied (publickey).
abort: git remote error: The remote server unexpectedly closed the connection.
在此之後,我仔細檢查了我的公鑰仍其實也和我的git賬戶相關聯。除了重新啓動計算機之外,自從上次推送以來沒有任何更改。任何人有任何想法可能是什麼問題?錯誤消息不是最有幫助的。
我的.hgrc只是平常:
[ui]
username = My Name <[email protected]>
[extensions]
hgext.convert=
hgext.bookmarks =
hggit =
能不能請你ssh到'git @ github.com'並確認它有效?你應該得到一個消息,如「你好,[用戶名]!你已經成功驗證,但GitHub不提供shell訪問。」 – Kevin
哦,拍攝沒有我得到一個權限被拒絕(公鑰)。看起來這實際上可能是問題所在。嗯 – BrandonM
聽起來像是你的本地SSH環境已經改變了(你是否重新生成了你的SSH密鑰,或許?),或者你從Github上通過他們的設置頁面刪除了你的公鑰。 – dimo414