从上游获取时github上的权限被拒绝(公钥)

从上游获取时github上的权限被拒绝(公钥),github,ssh-keys,Github,Ssh Keys,我似乎无法使用ssh密钥身份验证从上游获取更改 我可以添加回购协议: $ git remote add upstream git@github.com:user/repo.git 我的ssh文件夹的内容似乎正常: $ ls ~/.ssh authorized_keys id_rsa id_rsa.pub known_hosts 登录可以完美地工作: $ ssh -T git@github.com Hi user/repo! You've successfully authenticat

我似乎无法使用ssh密钥身份验证从上游获取更改

我可以添加回购协议:

$ git remote add upstream git@github.com:user/repo.git
我的ssh文件夹的内容似乎正常:

$ ls ~/.ssh
authorized_keys  id_rsa  id_rsa.pub  known_hosts
登录可以完美地工作:

$ ssh -T git@github.com
Hi user/repo! You've successfully authenticated, but GitHub does not provide shell access.
但从上游提取不起作用:

$ git fetch upstream
Permission denied (publickey).
fatal: The remote end hung up unexpectedly
有什么想法吗?

如果你没有“拥有”遥控器,你应该只使用只读链接

git remote add upstream git://github.com/antirez/redis

非常需要使用完整的描述和命令。这节省了我很多时间。非常感谢您提供的信息丰富的答案。谢谢您的回答。