Mic*_*ant 15 git ruby-on-rails heroku
heroku create
Creating floating-planet-1824......................... done, stack is bamboo-mri-1.9.2
http://floating-planet-1824.heroku.com/ | git@heroku.com:floating-planet-1824.git
git push heroku master
Warning: Permanently added the RSA host key for IP address '50.19.85.156' to the list of known hosts.
Agent admitted failure to sign using the key.
Permission denied (publickey).
fatal: The remote end hung up unexpectedly
Run Code Online (Sandbox Code Playgroud)
我生成了ssh键确定.
重新启动没有帮助.
Aiz*_*rdi 20
这就是我如何解决我的问题
$ heroku keys:clear
Removing all SSH keys... done
$ heroku login
Run Code Online (Sandbox Code Playgroud)
清除所有以前的ssh后.heroku login
我上传了我的ssh公钥,我可以高兴地git push heroku master
回来
Lui*_*eda 15
假设您已经在~/.ssh
文件夹中使用了公钥和私钥,则可能存在两种不同的情况:
heroku keys:add ~/.ssh/your_public_key
或者你做了,但你没有将你的身份加载到SSH身份验证代理中.解决方案,执行:
ssh-add -K ~/.ssh/your_private_key # OSX
ssh-add -k ~/.ssh/your_private_key # Ubuntu
并输入您的密码,以便您可以使用您的私钥.
我面临的问题是设置ssh环境变量.
SSH_AUTH_SOCK=0
heroku keys
Run Code Online (Sandbox Code Playgroud)
将显示密钥,删除然后登录,它将为您创建一个并添加到您的应用程序.或者,您可以使用电子邮件创建rsa密钥,然后使用它
heroku keys:add /path
使用生成密钥
ssh-keygen -t rsa -C "your_email@youremail.com"
归档时间: |
|
查看次数: |
8315 次 |
最近记录: |