过去几天我一直在寻找解决这个问题的方法。我能够很好地登录heroku,看到我的密钥和应用程序,但是当我尝试Heroku push origin master时,我不断收到此错误。我可以生成一个密钥,删除它们再次添加它们,完全丢失
C:\Users\petey_000\rails_projects\sample_app>heroku keys
=== peteywiggin@gmail.com Keys
ssh-rsa AAAAB3NzaC...1Xr/y7nw== petey_000@PETES-PC
ssh-rsa AAAAB3NzaC...UCb8Glpsxt petey_000@PETES-PC
C:\Users\petey_000\rails_projects\sample_app>ssh-add ~/.ssh/id_rsa
Could not open a connection to your authentication agent.
C:\Users\petey_000\rails_projects\sample_app>ssh-agent
SSH_AUTH_SOCK=/tmp/ssh-FQ9fnRDJkhj7/agent.4812; export SSH_AUTH_SOCK;
SSH_AGENT_PID=840; export SSH_AGENT_PID;
echo Agent pid 840;
C:\Users\petey_000\rails_projects\sample_app>ssh-add ~/.ssh/id_rsa
Could not open a connection to your authentication agent.
C:\Users\petey_000\rails_projects\sample_app>eval `ssh-agent`
FILE DOES NOT EXIST.