Reputation: 1027
I've been using hg-git fine up until this point, pushing and pulling from my git repo with mercurial. Today all of a sudden I get the following error:
❯ hg push
pushing to git+ssh://[email protected]/User/myrepo.git
Permission denied (publickey).
abort: git remote error: The remote server unexpectedly closed the connection.
After this, I double checked my public keys were still in fact there and associated with my git account. Nothing has changed since my last push other than my restarting my computer. Anyone have any idea what could be the problem? The error message isn't the most helpful.
My .hgrc is just the usual:
[ui]
username = My Name <[email protected]>
[extensions]
hgext.convert=
hgext.bookmarks =
hggit =
Upvotes: 4
Views: 867
Reputation: 97365
You must to provide your public key to GitHub (SSH-agent or PageAnt depending from OS)
Upvotes: 3