user189035
user189035

Reputation: 5789

git clone: I get a strange authentication error

I'm admin in a private github repo. Since this morning, when I try to clone that repo I get:

git clone https://github.com/myblabla/blabla.git
Cloning into 'blabla'...
Missing or invalid credentials.
Error: connect ENOENT /run/user/1000/vscode-git-fa9d1b661a.sock
    at PipeConnectWrap.afterConnect [as oncomplete] (net.js:1056:14) {
  errno: 'ENOENT',
  code: 'ENOENT',

  syscall: 'connect',
  address: '/run/user/1000/vscode-git-fa9d1b661a.sock'
}
Missing or invalid credentials.
Error: connect ENOENT /run/user/1000/vscode-git-fa9d1b661a.sock
    at PipeConnectWrap.afterConnect [as oncomplete] (net.js:1056:14) {
  errno: 'ENOENT',
  code: 'ENOENT',
  syscall: 'connect',
  address: '/run/user/1000/vscode-git-fa9d1b661a.sock'
}
remote: Repository not found.
fatal: Authentication failed for 

I never had that before. What's the fix?

When I do:

ssh -T [email protected]

I get:

[email protected]: Permission denied (publickey).

Upvotes: 18

Views: 19087

Answers (5)

L O C O
L O C O

Reputation: 155

Close the VS-Code and open again

Upvotes: 2

MAMTA LEEL
MAMTA LEEL

Reputation: 1

I overcame this problem by doing what I was trying to do from the terminal instead.

For me, it was an authentication error due to something with VSCode.

I faced the same problem earlier today.

Upvotes: 0

Piku
Piku

Reputation: 3626

I had this problem, it was caused by me using a terminal multiplexor on my Linux machine, connecting to it via VSCode's remote SSH and then trying to commit from a regular SSH connection which was also connecting through the terminal multiplexor.

Logging out the multiplexor reset things.

So be careful if you're using something like Tmux on the remote machine and access it inside the VSCode terminal, it seems to confuse git.

Upvotes: 1

Ghadban135
Ghadban135

Reputation: 545

Try to open a new terminal in your VSCode, this may solve your problem.

Upvotes: 35

user189035
user189035

Reputation: 5789

Apparently, it's vscode's virtual terminal Easter egg. When I type the git clone command in a proper terminal (not the emulator in vs), it works as usual.

Upvotes: 16

Related Questions