By default, VSCode asks for an Atlascode Integration with the following permissions:
I can view pull requests. However, when creating a pull request from the VSCode Atlassian extension, it fails with this error:
exitCode:128
gitCommand:fetch
gitErrorCode:RemoteConnectionError
message:Failed to execute git
stderr:Permission denied (publickey). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.
stdout:
@Barry Rafkind Looks like an error occurred when the extension tries to execute a git command. Could you check a couple of things?
- Can you run a git command (eg. Git: Fetch) from VS Code's command palette and see if that works?
- If you haven't cloned using ssh, can you try setting that up? https://confluence.atlassian.com/bitbucket/set-up-an-ssh-key-728138079.html
There are some suggestions in another community question which might help - https://community.atlassian.com/t5/Sourcetree-questions/Permission-denied-publickey/qaq-p/594966
Thanks, Pramod! Actually, I was not able to run git commands from the command palette although I had ssh-agent running with my ssh key. I was able to solve this according to the advice here https://github.com/Microsoft/vscode/issues/13680 by using the built-in OpenSSH service in Windows 10.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.