addon-vscode icon indicating copy to clipboard operation
addon-vscode copied to clipboard

Github ssh authentication no longer working after 6.0 update

Open dandantheflyingman opened this issue 1 month ago • 3 comments

Hi, I've been using SSH Github authentication in the add-on for the last few years (I think there was a specific reason for doing this at the time, but I cannot see it being recommended one way or not in the docs anymore). After the 6.0 update I cannot sync changes from my Github repo anymore with the error:

Git: [email protected]: Permission denied (publickey).

I have confirmed all the usual (that the ssh keys exist, that the right key is in my Github settings).

When I run ssh -T [email protected] from the VSCode terminal, I get the same above error.

When I run ssh-add /data/.ssh/id_rsa first, then ssh -T [email protected], it shows that I can successfully authenticate.

Has something changed that I have missed? Is there a better way to link to Github these days (https?). How can I sync my pending local changes and fix it (if I need to move to a new way of authenticating)?

Regards, dan

dandantheflyingman avatar Nov 30 '25 12:11 dandantheflyingman

I have the same problem. What I found is that the /data/.ssh folder is symlinked to /root/.ssh/.ssh. I assume that previously it was to /root/.ssh. For me this means that ssh is unable to find my keys when trying to push. For now I just copied my key from /root/.ssh/.ssh/id_ed25519 to /root/.ssh/id_ed25519.

This resolved my push for now.

jasonlearst avatar Nov 30 '25 19:11 jasonlearst

Thanks Jason. I am seeing the same thing.

Theres something strange going on. I added ln -sn /data/.ssh /root/.ssh as an init command just to see what happens, and I get these lines in the add-on log:

ln: failed to create symbolic link '/root/.ssh/.ssh': File exists
[11:16:54] FATAL: Failed executing init command: ln -sn /data/.ssh /root/.ssh

Why is it appending a second /.ssh? I tried running the command in the terminal in VSCode and the same thing occurred.

dandantheflyingman avatar Dec 01 '25 01:12 dandantheflyingman

same issue, cp /root/.ssh/.ssh/* /root/.ssh/ from vscode terminal did the trick for me.

mathieucarbou avatar Dec 02 '25 16:12 mathieucarbou