即使我已经添加了我的密钥,也无法访问我的Heroku仓库

时间:2015-03-15 03:21:31

标签: ruby-on-rails git heroku

我正在尝试从Heroku克隆当前项目。我有权限访问权限,因此我删除了现有密钥,并添加了当前密钥:

$ heroku keys:add

Found an SSH public key at /home/martyn/.ssh/id_rsa.pub
Would you like to upload it to Heroku? [Yn] Y
Uploading SSH public key /home/martyn/.ssh/id_rsa.pub... done

$ heroku keys

=== martynbissett@yahoo.co.uk Keys
ssh-rsa AAAAB3NzaC...5VRkk6UVBT martyn@martyn-Lenovo-B590

$ heroku git:clone -a young-lowlands-8336

Cloning from app 'young-lowlands-8336'...
Cloning into 'young-lowlands-8336'...
Agent admitted failure to sign using the key.
Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

我检查网站是否有效,确实如此。从我的Heroku控制面板我可以看到这个项目也是活跃的。为什么我仍被拒绝?

1 个答案:

答案 0 :(得分:0)

这是我从Heroku回来的回复,现在似乎有效:

看起来您的本地SSH使用的密钥与默认密钥不同。 您可以尝试使用以下命令将密钥标识重置为默认值:

ssh-add -D