1
我真的在Stack和web上做了一个详尽的搜索,并没有找到解决这个问题的方法。权限被拒绝(公钥)。 heroku git:克隆myapp - 在Windows上
我只是想从Heroku的混帐我的回购复制到我的工作机,以及这样做的:
heroku git:clone myapp
或
git clone [email protected]:myapp.git -o heroku
输出上是相同的:
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights and the repository exists.
好吧,我已经读过,这意味着没有找到机器上的SSH公钥。 我加了很多不同的方式做按键,如:
ssh-keygen -t rsa -f id_rsa
或
heroku keys:clear
heroku keys:add
或
ssh-keygen -t rsa -C "my_email[at].com" -f C:\path\.ssh\id_rsa_heroku
有人可以解释我发生了什么事?
还有另外一种方法,或者我错过了一些步骤来设置克隆从git成功的我的回购?
注意:我在Windows平台上。对不起:|
我遇到了同样的问题,但此解决方案对我无效。 – Vince
有什么问题? –
与这个问题的原始海报完全一样。我怀疑它与Windows'Git寻找密钥的位置有关,但我已经尝试将这些副本放在几个不同的位置。我已经放弃了。 Cygwin的Git工作得很好。 – Vince