【发布时间】:2012-11-15 06:48:42
【问题描述】:
我似乎无法通过 ssh 密钥身份验证从上游获取更改。
我可以添加 repo 就好了:
$ 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
有什么想法吗?
【问题讨论】: