Vscode-gitlens: Public Key issue when trying to push/pull for Visual Studio Code on Mac

Created on 4 Apr 2019  路  9Comments  路  Source: eamodio/vscode-gitlens

Hi,
I can't seem to find the right answer here or on the web.

So, if I create a project opening my Repo folder, VSC and GitLens see all the branch details. However, I cannot use the pull/push features as I get a Permission (publickey) denied error.

I can't figure what setting to update to overcome this issue.

Hoping you can advise.
Screen Shot 2019-04-04 at 09 45 51

potential bug

All 9 comments

@mikeflemingcfs Do you see this same issue using the pull/push commands in vscode directly?

If you mean I just use VSC terminal? If I do that I get the passphrase request and then it pushes.

I mean from either the command palette -- Git: Pull or from the ... menu on the Source Control sidebar:
image

Hi Eamodio, yes same issue using the command palette.
Whilst this isn't causing me an issue in Bitbucket, could it be the issue in VSC?
fatal: ambiguous argument 'PE/QA1-Digital-25765_Croatia@{u}': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git [...] -- [...]'

git for-each-ref --format %(refname) %(objectname) --sort -committerdate
git remote --verbose

Source Control, same issue.
Screen Shot 2019-04-16 at 10 18 20

This was the troubleshooting page that helps me resolve my issue. In essence, the fact that I was able to successfully push/pull to Bitbucket using sourcetree, obscured the fact that my ssh keys had not been added to git.
https://confluence.atlassian.com/bitbucket/troubleshoot-ssh-issues-271943403.html

@mikeflemingcfs glad you figured it out!

need to add your private key to ssh agent

ssh-add ~/.ssh/<private_key_file>

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

vgrafe picture vgrafe  路  3Comments

DavidBabel picture DavidBabel  路  3Comments

JP-Ellis picture JP-Ellis  路  3Comments

Ardeshir81 picture Ardeshir81  路  3Comments

mindpivot picture mindpivot  路  4Comments