我不小心爲不存在的用戶創建了一個肯根。該命令是cat ~/.ssh/authorized_keys >> keydir/jpeck.pub
,但其實......我不是故意這樣做的。如何刪除用戶的ssh keygen?
我已經使用rm jpeck.pub
刪除了該文件,它肯定沒有了。但是,當我嘗試使用SourceTree推送提交時,出現以下錯誤;
git -c diff.mnemonicprefix=false -c core.quotepath=false -c credential.helper=sourcetree push -v --tags --set-upstream origin refs/heads/master:refs/heads/master
Pushing to ssh://[email protected]:2222/dashboard.git
W access for dashboard DENIED to jpeck
(Or there may be no repository at the given path. Did you spell it correctly?)
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Completed with errors, see above
下一個消息Your commit succeeded but your push failed. To retry your push, use the Push toolbar button.
我已經創建了正確的用戶名密鑰生成。我看不到還有什麼我需要做..我試過sudo service apache2 restart
,但沒有效果。我是一名安裝git的初學者,但這也是一個愚蠢的錯誤 - 今天我很累。
它似乎認爲jpeck是一個確實存在的用戶。 「...儀表板DENIED爲jpeck」。你有沒有把jpeck配置爲SourceTree中的某個用戶? – 2015-02-09 21:12:19
@GrahamPerks絕對不會!通過前端,我從未設置過jpeck用戶。只有當我在上面的行中輸入jpeck的時候。 – mikelovelyuk 2015-02-10 11:07:40