vg9021
vg9021

Reputation: 11

Azure DevOps ,git fetch failed with exit code 128,fatal:Authentication failed for

When I use Azure DevOps Pipeline ,I received this error: "fatal:could not read username for ‘http:xx.xx.xx.xx:’ No such device or address, git fetch failed with exit code 128".

When:

  1. I login to the agent machine;
  2. Use the command git clone http://xx.xx.x.x/x/xx/ (Azure DevOps repo); and
  3. Input username and passwd

It shows “fatal:Authentication failed for ...”. I tried using PAT and SSH,But they both failed. The port 443 and 43 is isolation attentions: is http, not https

Upvotes: 1

Views: 3039

Answers (1)

Sonali Das
Sonali Das

Reputation: 1026

Generate a new SSH key. Go back to your Git account and remove the old SSH key and add the newly generated SSH key. For best practice always set SSH key password instead of leaving it blank.

Upvotes: 1

Related Questions