I have a private repository (organization repo) in github.
I generated rsa keys, added the public one to the github repo (with read access only).
I created credentials on Jenkins. I added the private key to it:
When configuring the job, it gives me the following error:
Failed to connect to repository : Command "git ls-remote -h [email protected]:XXX-Team/XXx-datalake-dataflow.git HEAD" returned status code 128: stdout: stderr: Permission denied (publickey). fatal: Could not read from remote repository.
Please make sure you have the correct access rights and the repository exists
Could someone explain what I did wrong and how to fix it ?