简体   繁体   English

GIT 权限被拒绝(公钥) - 致命无法从远程存储库读取

[英]GIT permission denied (publickey) - Fatal could not read from remote repository

I have ssh -T git@github.com command returning successfully authenticated.我有ssh -T git@github.com命令返回成功验证。
I also have ssh-add -l -E sha256 returning output.我也有ssh-add -l -E sha256返回 output。

But git push -u origin main returns但是git push -u origin main返回

***@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.

Can anyone help me?谁能帮我?

You are adding as a remote an HTTPS URL ( https://github.com/saumyaphilip/mgc_web.git ) You are adding as a remote an HTTPS URL ( https://github.com/saumyaphilip/mgc_web.git )

That means your SSH key is not used at all.这意味着您的 SSH 密钥根本没有使用。

Try at least to switch to SSH:至少尝试切换到 SSH:

cd /path/to/repository
git remote set-url origin git@github.com:saumyaphilip/mgc_web.git

暂无
暂无

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

相关问题 Git:权限被拒绝(公钥)。 致命:无法从远程存储库读取 - Git: Permission denied (publickey). fatal: Could not read from remote repository Git:权限被拒绝(公钥)致命 - 无法从远程存储库读取。 克隆 Git 存储库时 - Git: Permission denied (publickey) fatal - Could not read from remote repository. while cloning Git repository 权限被拒绝(公钥)。 严重的:无法从远程存储库读取 - Permission denied (publickey). fatal: Could not read from remote repository 权限被拒绝(公钥)。 严重的:无法从远程存储库读取 - Permission denied (publickey). fatal: Could not read from remote repository GitHub:权限被拒绝(公钥)。 致命:无法从远程存储库读取 - GitHub: Permission denied (publickey). fatal: Could not read from remote repository Git 子模块:git@github.com:权限被拒绝(公钥)。 致命:无法从远程存储库中读取 - Git submodule: git@github.com: Permission denied (publickey). fatal: Could not read from remote repository git@gitlab.com:权限被拒绝(公钥)。 致命:无法从远程存储库读取 - git@gitlab.com: Permission denied (publickey). fatal: Could not read from remote repository Git Clone:权限被拒绝(publickey)。 致命:无法从远程存储库读取 - Git Clone : Permission denied (publickey). fatal: Could not read from remote repository git@github.com:权限被拒绝(公钥)。 致命:无法从远程存储库读取 - git@github.com: Permission denied (publickey). fatal: Could not read from remote repository 使用ssh访问bitbucket的Jenkins git插件:权限被拒绝(publickey)。 致命:无法从远程存储库读取 - Jenkins git plugin with ssh access to bitbucket: Permission denied (publickey). fatal: Could not read from remote repository
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM