Im trying to setup Github connection from Jenkins but get the above error.
Inorder to overcome this error, I tried changing to Jenkins user and run the git ls-remote command.
su -s /bin/bash jenkins
but when I run the command I get the following error -
bash-4.1$ git ls-remote -h git@github.comcast.com:username/sid.git HEAD
fatal: Cannot change to '/home/clduser/..': Permission denied