即使我添加了我的密钥,也无法访问我的 Heroku 存储库
Can't access my Heroku repo even though I've added my key
我正在尝试从 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 控制面板中,我可以看到该项目也处于活动状态。为什么我仍然被拒绝?
这是我从 Heroku 得到的回复,现在似乎可以使用了:
您的本地 SSH 使用的密钥似乎与默认密钥不同。
您能否尝试使用以下命令将密钥标识重置为默认值:
ssh-add -D
我正在尝试从 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 控制面板中,我可以看到该项目也处于活动状态。为什么我仍然被拒绝?
这是我从 Heroku 得到的回复,现在似乎可以使用了:
您的本地 SSH 使用的密钥似乎与默认密钥不同。 您能否尝试使用以下命令将密钥标识重置为默认值:
ssh-add -D