(在Mac上)我正在尝试从我的新计算机克隆我的项目.我首先生成了ssh密钥对:
heroku keys:add /Users/y/.ssh/heroku_rsa.pub
Run Code Online (Sandbox Code Playgroud)
heroku keys 说明:
ssh-rsa AAAAB3NzaC...B9DjpXg3fb y@server.local
Run Code Online (Sandbox Code Playgroud)
当我尝试克隆我的项目时 git clone git@heroku.com:xyz.git
Cloning into xyz...
Warning: Permanently added the RSA host key for IP address '50.19.85.132' to the list of known hosts.
Permission denied (publickey).
fatal: The remote end hung up unexpectedly
Run Code Online (Sandbox Code Playgroud)
这很奇怪.
编辑:如果我不重命名我的pub密钥文件,那么它的工作原理.不知何故,heroku不喜欢重命名我的密钥..换句话说,使用deault id_rsa.pub名称.