繁体   English   中英

如何为用户删除ssh keygen?

[英]How do I delete ssh keygen for user?

我意外地为一个不存在的用户创建了一个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. Your commit succeeded but your push failed. To retry your push, use the Push toolbar button.

我已经为正确的用户名创建了一个密钥生成器。 而且我看不到我还需要做什么。.我尝试了sudo service apache2 restart但是没有任何效果。 我是安装git的初学者,但这也是一个愚蠢的错误-我今天很累。

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

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

完成该操作后,我收到一条消息,说明如何在git中删除jpeck keygen文件。 然后,当我尝试像以前一样使用SourceTree时,它没有任何错误。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM