简体   繁体   English

获取ssh git@github.com:权限被拒绝(公钥)

[英]Fetching ssh git@github.com: Permission denied (publickey)

Command 命令

git remote update

ERROR 错误

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.

相关问题 git@github.com:权限被拒绝(公钥)。 但是 ssh git@github.com 有效 - git@github.com: Permission denied (publickey) . But ssh git@github.com works git@github.com:权限被拒绝(公钥) - git@github.com: Permission denied (publickey) ssh -T git@github.com:你已经成功认证 | sudo git pull:权限被拒绝(公钥) - ssh -T git@github.com: You've successfully authenticated | sudo git pull: Permission denied (publickey) Git Submodule git@github.com:权限被拒绝(公钥)错误 - Git Submodule git@github.com: Permission denied (publickey) error git@github.com:权限被拒绝(公钥)错误 - git@github.com: Permission denied (publickey) ERROR 为什么 git@github.com:Windows 中的权限被拒绝(公钥)? - Why git@github.com: Permission denied (publickey) in windows? git@github.com:使用纱线安装github js package时权限被拒绝(公钥) - git@github.com: Permission denied (publickey) when using yarn to install github js package Git 子模块:git@github.com:权限被拒绝(公钥)。 致命:无法从远程存储库中读取 - Git submodule: git@github.com: Permission denied (publickey). fatal: Could not read from remote repository 我收到此错误 git@github.com: Permission denied (publickey), 当我在新 Mac 上 git push 时 - I get this error git@github.com: Permission denied (publickey), when I git push on new mac 我不能做 git 推送:git@github.com:权限被拒绝(公钥) - I can't do git push: git@github.com: Permission denied (publickey)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM