我似乎无法使用 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
有任何想法吗?