title: load key : permission denied jenkins
body: <p>I am trying to run a multibranch job in jenkins . Codes are placed in git. While running the job I am getting access rights issue. While generating the <code>ssh-keygen</code> in jenkins getting the permission denied error.</p>
  
  <p>Configuring in ubuntu box.</p>
  
  <ol>
  <li>Tried copying the id_rsa and id_rsa.pub from /root/.ssh but its doesnt copy anything in id_rsa or allow to edit the file manually.</li>
  </ol>
  
  <pre><code> git ls-remote -h git@github.com:****/*****1.git HEAD
  The authenticity of host 'github.com ("IP Address")' can't be established.
  RSA key fingerprint is SHA256:********************Y8.
  Are you sure you want to continue connecting (yes/no)? yes
  Failed to add the host to the list of known hosts (/var/lib/jenkins/.ssh/known_hosts).
  Load key "/var/lib/jenkins/.ssh/id_rsa": Permission denied
  Permission denied (publickey).
  fatal: Could not read from remote repository.
  </code></pre>