Hi Team,
we are experiencing a discontinuous error from our CI/CD Jenkins server (it's an old release: CentOS release 6.10) while we are trying to connect to the bitbucket repository, running for example a command like git fetch --tags --force --progress -- git@bitbucket.org:workspace-id/repo.git +refs/heads/:refs/remotes/origin/; the error is the following:
09:53:18 Caused by: hudson.plugins.git.GitException: Command "git fetch --tags --force --progress -- git@bitbucket.org:workspace-id/repo.git +refs/heads/:refs/remotes/origin/" returned status code 128:
09:53:18 stdout:
09:53:18 stderr: ssh_exchange_identification: Connection closed by remote host
09:53:18 fatal: Could not read from remote repository.
09:53:18
09:53:18 Please make sure you have the correct access rights
09:53:18 and the repository exists.
09:53:18
09:53:18 at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2172)
09:53:18 at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1864)
09:53:18 at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$500(CliGitAPIImpl.java:78)
09:53:18 at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:545)
09:53:18 at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:892)
09:53:18 ... 11 more
Even when we try, from the same server, to run a command like ssh -vvv git@bitbucket.org host_key_info we receive, after some successes, the error ssh_exchange_identification: Connection closed by remote host.
Do you have any clue about this issue?
Thank you in advance,
Alberto