title: Creating SSH keys for Gerrit and Hudson
body: <p>I'm trying to use the <code>Hudson</code> <a href="http://wiki.hudson-ci.org/display/HUDSON/Gerrit+Trigger" rel="noreferrer"><code>Gerrit Trigger</code></a> plug-in.</p>
  
  <p>For whatever reason, <code>Gerrit</code> is not accepting the <code>SSH</code> key located at <code>/var/lib/hudson/.ssh/id_rsa</code>.</p>
  
  <p><strong>In the GUI</strong> I get <code>Connection error : com.jcraft.jsch.JSchException: Auth fail</code> as an error, and when I'm working <strong>in the terminal</strong> I get a <code>Permission denied (publickey)</code> error.</p>
  
  <p><strong>How can I generate and use a working private key so <code>Hudson</code> and <code>Gerrit</code> can play nice?</strong></p>