Menu

Virtual Geek

Tales from real IT system administrators world and non-production environment

Git clone or push Missing or invalid credentials fatal authentication failed

While working with Git clone I was receiving fatal: Authentication failed and Missing or invalid credentials error. This happens due to missing password or it is not mentioned.

Git Visual studio clone fatal authentication ansible awx fatal variable pass connection error vscode missing or invalid credentials scm.png

[vjanvi@ansiblwcentos variablepass]$ git clone http://[email protected]/Bonobo.Git.Server/ansibleawx.git
Cloning into 'ansibleawx'...

fatal: Authentication failed for 'http://192.168.34.44/Bonobo.Git.Server/ansibleawx.git/'
[vjanvi@ansiblwcentos variablepass]$ 
[vjanvi@ansiblwcentos variablepass]$ git clone http://192.168.34.44/Bonobo.Git.Server/ansibleawx.git
Cloning into 'ansibleawx'...
Missing or invalid credentials.
Error: connect ECONNREFUSED /run/user/1000/vscode-git-a7bd9556be.sock
    at PipeConnectWrap.afterConnect [as oncomplete] (node:net:1157:16) {
  errno: -111,
  code: 'ECONNREFUSED',
  syscall: 'connect',
  address: '/run/user/1000/vscode-git-a7bd9556be.sock'
}
Missing or invalid credentials.
Error: connect ECONNREFUSED /run/user/1000/vscode-git-a7bd9556be.sock
    at PipeConnectWrap.afterConnect [as oncomplete] (node:net:1157:16) {
  errno: -111,
  code: 'ECONNREFUSED',
  syscall: 'connect',
  address: '/run/user/1000/vscode-git-a7bd9556be.sock'
}
fatal: Authentication failed for 'http://192.168.34.44/Bonobo.Git.Server/ansibleawx.git/'
[vjanvi@ansiblwcentos variablepass]$ 

To resolved this issue you will need to mention username and password in the git url alike below, 

git clone https://<github_username>:<github_password>@githuburl/folder/repo.git

Ansible redhat centos ubuntu git clone http bonobo git server ansible awx tower variable pass repository error cone authentication resolved.png

Incase you are facing issue when pushing git repo remotely you can set it using command

git remote set-url origin https://<github_username>:<github_password>@githuburl/folder/repo.git

Useful Articles
INSTALLING .NET 3.5 FRAMEWORKS ON WINDOWS SERVER 2012 R2
CONVERTING FROM SERVER 2012 CORE INSTALL TO FULL GUI
Solved Visual studio Code make sure you configure your user.name and user.email in git
Logging and Working on BitBucket using Git SSH url
Running Your First PowerShell Scripts With Jenkins and Git
PowerShell How to find file and folders in Azure Storage Account Blobs and Containers

Go Back

Comment

Blog Search

Page Views

11497135

Follow me on Blogarama