Skip to content

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

@maxfi

Description

@maxfi

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

[email protected]: 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 [email protected]
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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions