title: Authentication error in jenkins on using sudo
body: <p>I have sh script in jenkins which has sudo ssh command and I am getting this error</p>
  
  <pre><code>Warning: Identity file key.pem not accessible: Permission denied.
  Host key verification failed.
  sudo: no tty present and no askpass program specified
  </code></pre>
  
  <p>I have found solutions saying add</p>
  
  <pre><code>jenkins ALL=(ALL) ALL
  </code></pre>
  
  <p>these lines in /etc/sudoers but still its not working.</p>