我似乎无法通过ssh密钥身份验证从上游获取更改.
我可以添加回购就好了:
$ git remote add upstream git@github.com:user/repo.git
Run Code Online (Sandbox Code Playgroud)
我的ssh文件夹的内容似乎没问题:
$ ls ~/.ssh
authorized_keys id_rsa id_rsa.pub known_hosts
Run Code Online (Sandbox Code Playgroud)
登录工作完美:
$ ssh -T git@github.com
Hi user/repo! You've successfully authenticated, but GitHub does not provide shell access.
Run Code Online (Sandbox Code Playgroud)
但是从上游获取不起作用:
$ git fetch upstream
Permission denied (publickey).
fatal: The remote end hung up unexpectedly
Run Code Online (Sandbox Code Playgroud)
有任何想法吗?