GIT plugin in jenkins not able to connect to GIT repository

got error: Failed to connect to repository : Error performing git command: git ls-remote -h git@mcdasatest07.isd.lacounty.gov:jenkins/ampsoaapplication.git HEAD
when connecting GitLab from Jenkins.

  • Holly

Double check the mcdasatest07.isd.lacounty.gov domain and if it’s the correct domain, make sure that Jenkins controller (and nodes) can resolve it,
If it still doesn’t work as expected - make sure the Credentials set properly

After install GIT 2.32.0, got error:
Failed to connect to repository: Command “git ls-remote -h git@mcdasatest07.isd.lacounty.gov:jenkins/ampsoaapplication.git HEAD” returned status code 128:
stdout:
stderr: Host key verification failed.
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

When I manually run
:/bin>git ls-remote -h git@mcdasatest07.isd.lacounty.gov:jenkins/ampsoaapplication.git HEAD
The authenticity of host ‘mcdasatest07.isd.lacounty.gov (10.48.153.14)’ can’t be established.
ECDSA key fingerprint is SHA256:PEfV8BksPEGyGiZ59mNbWnijAeKTCVNp1mHs1gff4fY.
ECDSA key fingerprint is MD5:64:e0:e2:77:84:f1:80:af:b0:94:02:d1:78:d2:78:9c.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added ‘mcdasatest07.isd.lacounty.gov,10.48.153.14’ (ECDSA) to the list of known hosts.
git@mcdasatest07.isd.lacounty.gov’s password:
Permission denied, please try again.
git@mcdasatest07.isd.lacounty.gov’s password:
Authentication failed.
fatal: Could not read from remote repository.

What’s password for git@mcdasatest07.isd.lacounty.gov supposed to be?