dotstow icon indicating copy to clipboard operation
dotstow copied to clipboard

error authenticating: no auth sock variable

Open clayrisser opened this issue 5 years ago • 4 comments

I get the following error in the Windows subshell for linux

$ dotstow sync
error authenticating: no auth sock variable

clayrisser avatar Jan 19 '20 05:01 clayrisser

Seeing this on Debian too, when fetching against an git@ over ssh

toddpi314 avatar Dec 13 '20 17:12 toddpi314

github is recommending ed25519 for SSH keygen these days. (ref: https://docs.github.com/en/github-ae@latest/github/authenticating-to-github/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent)

This means we can't explicitly rely on the id_rsa* to be available in ~/.ssh anymore: https://github.com/codejamninja/dotstow/blob/master/src/services/git.ts#L13-L14

toddpi314 avatar Dec 13 '20 17:12 toddpi314

Looks like this was cleared up by forcing usage of the ssh-agent for nodegit.

ssh-agent bash

toddpi314 avatar Dec 13 '20 18:12 toddpi314

Yeah, I think that happens when the ssh agent isn't running. I've had it happen in systems like arch linux that don't automatically turn ssh agent on.

clayrisser avatar Dec 13 '20 23:12 clayrisser

Shouldn't be an issue anymore now that it's rewritten in bash.

clayrisser avatar Feb 27 '23 20:02 clayrisser