Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/git/21.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby on rails HEROKU:权限被拒绝(公钥)致命:无法从远程respository读取_Ruby On Rails_Git_Heroku - Fatal编程技术网

Ruby on rails HEROKU:权限被拒绝(公钥)致命:无法从远程respository读取

Ruby on rails HEROKU:权限被拒绝(公钥)致命:无法从远程respository读取,ruby-on-rails,git,heroku,Ruby On Rails,Git,Heroku,在过去的几天里,我一直在寻找解决这个问题的方法。我可以很好地登录到heroku,查看我的密钥和应用程序,但当我尝试heroku推原始主机时,我不断收到此错误。我可以生成一个密钥,删除它们,再添加它们,完全丢失 C:\Users\petey_000\rails_projects\sample_app>heroku keys === peteywiggin@gmail.com Keys ssh-rsa AAAAB3NzaC...1Xr/y7nw== petey_000@PETES-PC ssh

在过去的几天里,我一直在寻找解决这个问题的方法。我可以很好地登录到heroku,查看我的密钥和应用程序,但当我尝试heroku推原始主机时,我不断收到此错误。我可以生成一个密钥,删除它们,再添加它们,完全丢失

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.

尝试进行heroku登录heroku登录工作正常,当我放置eval$ssh代理时,它只是说文件不存在