本文介绍了我无法使用git来推送我的源代码,它说“权限被拒绝(publickey)”。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个存储库。我在本地计算机上运行这些命令:

I had created a repository. and I run these command in local computer:

$ git init
$ touch README
$ git add README
$ git commit -m "first commit"
$ git remote add origin [email protected]/xxxxx/DataStore.git

所有的事情都在应该做的事情上。但是,当我试图推动我的来源时,它造成了一些问题。
$ git push origin master
这里弹出一个密码输入对话框。它说:输入密码来解锁私钥,应用程序想要访问私钥[email protected],但它被锁定。我尝试了每个密码,它无法工作。如果我关闭了这个讨厌的对话框,它说:权限被拒绝(publickey)。

All things are working in what it should be. But, when I try to push my source, It caused some problem.$ git push origin masterHere pop up a password input dialog. It said: "Enter password to unlock the private key. An application wants to access the private key '[email protected]', but It locked.". And I tried every password, It can't work. If I close this annoying dialog, It said:"Permission denied (publickey)."

我遵循这个网页:
$ ssh-add -l
代理商没有身份证。

I follow this websit: https://help.github.com/articles/error-permission-denied-publickey $ ssh-add -l The agent has no identities.

我的错误是什么?我搜索了很多信息,但很少有人谈论这个。
请帮助我,我现在几乎疯了~~!

What is my mistake? I had search a lot of information, but few people talk about this.Please help me, I am almost crazy now ~~ !The dialog which let me input password

推荐答案

您必须,然后才能使用它。

You have to generate an SSH key before you can use it.

这篇关于我无法使用git来推送我的源代码,它说“权限被拒绝(publickey)”。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-11 09:50