title: How to set up Netbeans, Mercurial and BitBucket with SSH
body: <p>I set up Mercurial (actually TortoiseHg) to work so that Netbeans could interact with <a href="http://bitbucket.org" rel="nofollow">BitBucket</a>. I set it up with HTTPS, but now I'm trying to use SSH instead. I'm not having much success. Here are the steps I took:</p>
  
  <p>First, I opened PuTTYgen and generated an SSH2-RSA key. I wrote my email - the same one I used to register on BB, I don't know if that matters - as the Key comment. Anyway, I uploaded the public key to BitBucket and it accepted it. </p>
  
  <p>Then I created a private key and added it with pageant, as <a href="http://confluence.atlassian.com/display/BITBUCKET/Using+SSH+to+Access+your+Bitbucket+Repository;jsessionid=E69923A8E6B8E35AA9CF203C34465E76" rel="nofollow">this page</a> instructs. After that I made a command from the command line to verify it worked:</p>
  
  <pre><code>hg clone ssh://hg@bitbucket.org/myaccount/myrepo
  </code></pre>
  
  <p>It worked - cloned the entire repo to my computer. But then I went over to Netbeans and right-clicked on my project and went to <strong>Mercurial > Properties...</strong>. I filled out the box like this:</p>
  
  <pre><code>default-push: ssh://hg@bitbucket.org/myaccount/myrepo
  default-pull: ssh://hg@bitbucket.org/myaccount/myrepo
  username: My Name &lt;my@email.com&gt;
  </code></pre>
  
  <p>I tried to push/pull my repo, but it didn't do <em>anything</em>. I'm using Netbeans 7.0.1. How do I fix this?</p>