Hirse / vscode-ungit

Extension to show ungit in Visual Studio Code.
https://marketplace.visualstudio.com/items?itemName=Hirse.vscode-ungit
MIT License
28 stars 15 forks source link

Permission denied (publickey) when using with Remote - SSH extension and SSH agent forwarding #84

Open maxfi opened 4 years ago

maxfi commented 4 years ago

Using the Remote - SSH extension and ssh-add to forward my key to the remote server I get the following "Unhandled git error":

git@bitbucket.org: Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

I can access BitBucket from the command line:

$ ssh -T git@bitbucket.org
logged in as xxx
You can use git or hg to connect to Bitbucket. Shell access is disabled

I'm using the following .ssh/config to forward the ssh agent and port for ungit:

...
ForwardAgent yes
LocalForward 127.0.0.1:8448 127.0.0.1:8448
...

Is this something related to the vscode ungit extension or something related to FredrikNoren/ungit?

Hirse commented 4 years ago

It is probably more related to using VSCode with SSH. This extension starts ungit as a child process which accesses a local git and I have not tested it with any of the Remote extensions.