(在Mac上) 我试图从我的新电脑克隆我的项目。我第一次产生了SSH密钥对:git克隆Heroku项目失败
heroku keys:add /Users/y/.ssh/heroku_rsa.pub
heroku keys
显示:
ssh-rsa AAAAB3NzaC...B9DjpXg3fb [email protected]
当我试图通过git clone [email protected]: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
这是奇怪的克隆我的项目。
编辑:如果我不重命名我的酒吧密钥文件,然后它的作品。不知何故,heroku不喜欢重命名我的钥匙..换句话说,使用名称为deault id_rsa.pub
。
你有'%HOME%'定义为'C:/用户/ y'? (你有没有定义'%HOME%'?) – VonC
你是否在你的'〜/ .ssh/authorized_keys'(或者你的SSH服务器寻找它的地方)添加了私钥。它不是,SSH服务器将不知道如何执行私钥身份验证。 –
我没有authorized_keys文件。我从来没有写过这样的文件在我以前的机器上。 – Morrowless