【发布时间】:2015-02-09 19:48:08
【问题描述】:
我不小心为一个不存在的用户创建了一个 kengen。命令是cat ~/.ssh/authorized_keys >> keydir/jpeck.pub,但实际上……我不是故意的。
我已经使用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://git@sandbox.dev: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 是一个确实存在的用户。 “...仪表板拒绝 jpeck”。您是否已将 jpeck 配置为 SourceTree 中某处的用户?
-
@GrahamPerks 绝对不是!通过前端,我从未设置过 jpeck 用户。我唯一一次输入 jpeck 是在上面一行中输入的。
标签: linux git atlassian-sourcetree ssh-keygen