-
Bug
-
Resolution: Fixed
-
Major
-
None
Adding a SSH key credential enables an executor on the master to use the credential for cloning a Git repository via SSH using the provided credentials. The private key is stored in ~/.ssh of the Jenkins user.
Running the same job on a SSH slave, the expectation is that this will work as on the master without any further configuration action.
This is not the case, the job will fail with the following in the log:
stdout: Cloning into '/home/jenkins/workspace/Begin_Release'...
stderr: Permission denied, please try again.
Permission denied, please try again.
Permission denied (publickey,password).
fatal: The remote end hung up unexpectedly
I would expect the SSH key credentials to be transferred to the slave so that they can be used there, too. Instead, the private key has to be installed in the ~/.ssh directory on the slave, too.