[英]Fetching ssh git@github.com: Permission denied (publickey)
git remote update
Fetching origin
Fetching ssh git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.
I use a username and password to access my git repo on GitHub. 我使用用户名和密码访问GitHub上的git repo。 My git pulls work fine.
我的git pull工作正常。 How do I change my fetch commands to access the repo with a username and password too?
如何更改获取命令以使用用户名和密码访问存储库?
I don't have the rep to leave this as a comment. 我没有代表将其保留为评论。 GitHub have some troubleshooting documentation on this issue help.github.com/en/articles/error-permission-denied-publickey
GitHub上有一些关于此问题的疑难解答文档help.github.com/en/articles/error-permission-denied-publickey
使用HTTPS而非SSH:您可以使用git remote set-url <remote name> <new url>
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.