【问题标题】:How do I delete ssh keygen for user?如何为用户删除 ssh keygen?
【发布时间】: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


【解决方案1】:

好的,问题解决了。我实际上并没有提交并将更改推送到 git。这些命令做到了;

git commit -a -m "Adding gitweb permissions"
git push

一旦我这样做了,我就会收到一条消息,告诉我 jpeck keygen 文件是如何在 git 中被删除的。然后,当我像以前一样尝试使用 SourceTree 时,它​​没有任何错误。

【讨论】:

    猜你喜欢
    • 2016-08-15
    • 1970-01-01
    • 2011-09-24
    • 2010-10-10
    • 1970-01-01
    • 2021-09-10
    • 2015-05-12
    • 2016-09-15
    • 2023-04-02
    相关资源
    最近更新 更多