简体   繁体   English

git push heroku主密码无法在rails中工作?

[英]git push heroku master password not working in rails?

I set up a rails project and initiated git.. 我建立了一个Rails项目并启动了git ..

then created heroku and added git remote.. 然后创建了heroku并添加了git remote ..

But while using git push heroku master, a dialog box opens and asks to for a password to unlock the private key.. 但是在使用git push heroku master时,将打开一个对话框,并要求输入密码以解锁私钥。

when i entered the heroku password, its not authenticating?? 当我输入heroku密码时,它无法验证?

which password should i use to unlock the private key?? 我应该使用哪个密码来解锁私钥?

The private key in question is the default SSH private key for your user account on your computer. 有问题的私钥是计算机上用户帐户的默认SSH私钥。 This password might be the password to your local computer user account. 该密码可能是您本地计算机用户帐户的密码。

Follow this tutorial from GitHub to generate your SSH key: http://help.github.com/mac-set-up-git/ 遵循GitHub上的本教程来生成您的SSH密钥: http : //help.github.com/mac-set-up-git/

Your SSH key is hidden, it won't be printed out for you to manually copy and paste. 您的SSH密钥是隐藏的,不会被打印出来供您手动复制和粘贴。 If you're a Mac user, run this command to copy your private SSH key to your clipboard: 如果您是Mac用户,请运行以下命令将SSH专用密钥复制到剪贴板:

$ pbcopy < ~/.ssh/id_rsa.pub

You'll be able just paste your SSH key to where ever you want. 您将可以将SSH密钥粘贴到所需的任何位置。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM