title: Jenkins : stderr: Permission denied (publickey). fatal: The remote end hung up unexpectedly
body: <p>I am hosting Jenkins on a virtual machine(redhat). I am able to setup jenkins system on it and able to access jenkins. But on <strong>manage jenkins</strong> page while creating any build job, when I giv my git repository link, I am getting this error - </p>
  
  <pre><code>Failed to connect to repository : Command "git ls-remote -h ssh://git.aaa.aaaa.corp:XXXXX/BSA/myProject.git HEAD" returned status code 128:
  stdout: 
  stderr: Permission denied (publickey). 
  fatal: The remote end hung up unexpectedly
  </code></pre>
  
  <p>I tried to follow many solutions related to SSH keys but of no help.</p>
  
  <p>PLs help.</p>