![]() ![]() ![]() In addition I can tell that strange thing is that above is happening even if I set verifiaction strategy to NO VERIFICATION. Use the “No verification” host key verification strategy (not recommended) → -> DO NOT WORK, even if I switch to that I am having the same error message.Switch the repository URL’s in job definitions from ssh protocol to https protocol and provide a username / password credential for the clone instead of a private key credential → LAST RESORT SOLUTION, IF NO OTHER SOLUTION THEN WILL TRY THIS.Enable JGit and use JGit instead of command line git on those older OpenSSH versions → CAN NOT BE IMPLEMENTED.Use the “Known hosts file” host key verification strategy and provide a known_hosts file on the agents with values for the required hosts → DO NOT WORK.I’ve attached host keys for several popular providers at the end of this comment → DO NOT WORK Use the “Manually provided keys” host key verification strategy.I have also tried solution from: Git client "accept new host key" breaks SSH auth from OpenSSH 7.5 and earlier - Jenkins Jira All seems to be correct (and as cloning from OS works then it has to be ok). I have checked all keys in known_hosts, jenkins user public keys, key configuration on Jenkins GUI, access key on Bitbucket etc. Strange thing is that directly from OS I can run the command without any issues, repo is being cloned (the same that is throwing and error on jenkins). I have tried different jenkins versions from 2.346.3-1.1 to 2.361. Configuration of both hosts are same, the same version of sshd (Openssh 7.4), the same version of OS (RedHat 7.9). Problem is being visible only on MASTER node, on agent node all seems to work fine. Please make sure you have the correct access rights 1 git status fatal: detected dubious ownership in repository at ‘C:/my/Repo’ To add an exception for this directory, call: git config global add safe.directory C:/my/Repo Set the environment variable GITTESTDEBUGUNSAFEDIRECTORIEStrue and run again for more information. That means you have to read the error message. Stderr: ssh_exchange_identification: Connection closed by remote hostįatal: Could not read from remote repository. It doesnt mean its necessarily something to do with authentication. : Command “git fetch -tags -progress +refs/heads/ :refs/remotes/origin/” returned status code 128: Git fetch -tags -progress +refs/heads/ :refs/remotes/origin/ # timeout=10ĮRROR: Error cloning remote repo ‘origin’ Verifying host key using known hosts file Using GIT_SSH to set credentials Jenkins user connection to bitbucket server with ssh key from XXXXXXX How can I solve this please assist if anyone has faced this issue before git status fatal: bad object HEAD git. I am facing following issue on my jenkins master node: I did git status and I am seeing this error. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |