So I had the problem where you try to push to Heroku and it says Permission denied (publickey). fatal: Could not read from remote repository.
So I found this question (which describes it in greater detail) and went through the whole answer and managed to kind of solve my problem. I recommend other people reading this read the next paragraph to understand my particular problem, then go try the solutions at the above link before proceeding here.
But I'm still not completely set. Here's the thing. Although I don't use it, I have the GitHub GUI installed, and if I right click a local repo in the GUI explorer and choose "Open Shell Here", whatever the context/environment of that shell is, I can push to Heroku from there no problem.
But if I just open the good ol' command line and navigate to the app folder and try the same thing, I get the whole Permission Denied your public keys sucks thing.
What could be the difference in terminal configuration??
EDIT:
It would SEEM that the above command is failing because ssh isn't working properly for some reason. When I run ssh-add -l
, I get Could not connect to authentication agent
, another popular error with many suggested solutions. The only one I've found (out of 10+) that works at all is to run bash
(we're in Windows command prompt, mind you), then eval "$(ssh-agent)"
, which says Agent pid 48532
, whatever that means, after which ssh-add -l
says The agent has no identities
, whatever that means, which is what I'm about to go research. The rabbit hole goes deeper....
Also, if I then exit bash, ssh-add -l
goes right back to Could not connect to authentication agent
. :( I want this to work in my normal command prompt!!