Getting error while configure git url in jenkins jobs

Hi
I am using Jenkins 2.442.2. While i configured git url getting below error.

But we are able to git checkout successfully. How to skip this error message please confirm.

If an error is displayed on that form, it indicates that the Jenkins controller failed to perform the git ls-remote command using the credential jenkins.pk that you provided. That might indicate the credential is not accepted by the remote git server. It might indicate that there is a configuration error on the controller that causes the git ls-remote command to fail.

Since the git checkout is successful when the job runs, that might mean that the agent where the job runs has a configuration in its account that allows the checkout to succeed, even though the credential jenkins.pk is not a valid credential.

For example, many user accounts have a file ~/.ssh/config that defines the ssh private key that is to be used with specific hosts. If that file exists on the account that is running the agent, it might override the invalid jenkins.pk credenital and allow the checkout to succeed. You could test that theory by creating a Jenkins agent with a newly created user account that does not have an ssh configuration defined in the user account.