我試圖推到git的服務器:我如何知道git服務器使用哪種授權方法?
git remote add origin ssh://[email protected]:9922/test
git push
這裏的響應:
[email protected]'s password:
我的密碼,我的SSH密鑰打字,但它失敗。我甚至使用this method檢查密碼的正確性。
三次嘗試失敗後,服務器響應:
Permission denied (publickey,password).
fatal: Could not read from remote repository.
這是否意味着該庫也爲密碼保護,不僅SSH保護?或者這只是SSH身份驗證不起作用?
這是失敗的ssh驗證步驟。很可能你沒有正確註冊你的密鑰。 – arkascha
您的鑰匙未使用或未被接受。試試'ssh -vvv [email protected] -p 9922'併發布輸出。您的密鑰位於何處?您是如何生成密鑰並將其傳遞給服務器的? – Jakuje