Neovim plugin Fugitive isn't using the ssh key agent, so I can't Gpush/Git push

572 views Asked by At

I am using Neovim on windows, as well as the vim-fugitive plugin. The plugin has a command that pushes commits, Gpush. I get an error saying "permission denied (publickey) fatal: could not read from remote repository. I am using an ssh key, everything works fine in a console but not with the plugin. I can't find anyone else with the same issue online.

1

There are 1 answers

4
VonC On

Try and launch Neovim from a CMD session where you have first typed:

set "GIT_SSH_COMMAND=ssh -Tv"

That should generate more traces during the Gpush command, allowing to see where SSH is looking from its private/public key pair.