- After an update of my operating system Jenkins cannot checkout the code from Git, showing issues like the following:
19:22:38 Caused by: hudson.plugins.git.GitException: Command "/usr/local/bin/git fetch --tags --progress email@example.com:acme/repo +refs/heads/*:refs/remotes/origin/*" returned status code 128: 19:22:38 stdout: 19:22:38 stderr: firstname.lastname@example.org: Permission denied (publickey). 19:22:38 fatal: Could not read from remote repository. 19:22:38 19:22:38 Please make sure you have the correct access rights 19:22:38 and the repository exists.
- CloudBees Core
- CloudBees Core on modern cloud platforms - Managed Master
- CloudBees Core on modern cloud platforms - Operations Center
- CloudBees Core on traditional platforms - Client Master
- CloudBees Core on traditional platforms - Operations Center
- CloudBees Jenkins Enterprise
- CloudBees Jenkins Enterprise - Managed Master
- CloudBees Jenkins Enterprise - Operations Center
- CloudBees Jenkins Platform - Client Master
- CloudBees Jenkins Platform - Operations Center
- CloudBees Jenkins Distribution
- CloudBees Jenkins X Distribution
There is a known issue that’s introduced by
OpenSSH 7.7. Git Plugin has to be upgraded in order to work.
OpenSSH 7.7 breaks
git-client plugin versions earlier than
ssh -V will show what version of OpenSSH is being used. Various versions of Windows, MacOS, Linux, and BSD bundle OpenSSH, and installing updates on them may break git access for users who have an older version of the plugin.
The fix is to upgrade the
git-client plugin version to at least