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). The solution is to make it point at repolocalurl instead. Finally figured out that the problem is that you have probably configured your Source Tree repo to be located at repolocalurl/.git. Problem is being visible only on MASTER node, on agent node all seems to work fine. Tried all answers and none worked with me. Please make sure you have the correct access rights Stderr: ssh_exchange_identification: Connection closed by remote hostįatal: Could not read from remote repository. : Command “git fetch -tags -progress +refs/heads/ :refs/remotes/origin/” returned status code 128: I use Source Tree for Unity, and the file still runs perfectly in the application, however a corrupted file formed in my folder. 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 That means you have to read the error message. I am facing following issue on my jenkins master node: It doesnt mean its necessarily something to do with authentication.
0 Comments
Leave a Reply. |