title: ssh-add, add a private key automatically
body: <p>I have a public-private ssh key pair (generated by <code>ssh-keygen</code> <em>without</em> a passphrase) and I use it with my bitbucket account, in particular with a mercurial repository.</p>
  
  <p>Usually I add manually the private key in my home working pc, using <code>ssh-add ~/.ssh/id_rsa</code>. I'm searching a way to do this automatically at every boot. There are many tutorials but I still have some problems.</p>
  
  <p>I have tried with:</p>
  
  <ol>
  <li><p>Add the line <code>ssh = ssh -i ~/.ssh/id_rsa -C</code> in my <code>~/.hgrc</code> mercurial settings file. This one doesn't work.</p></li>
  <li><p>Create <code>~/.ssh/config</code> ssh configuration file with the following content:</p>
  
  <pre><code>Host bitbucket-ssh
      Hostname ssh://hg@bitbucket.org/...
      IdentityFile ~/.ssh/id_rsa
  </code></pre></li>
  </ol>
  
  <p>The second one does not work too.</p>
  
  <p>What I'm wrong with? Should I use a simple bash script running <code>ssh-add</code> at every boot?</p>
  
  <p>Thanks in advance.</p>