title: Host key verification failed when installing NPM module from private Bitbucket
body: <p>I am trying to install an NPM module from a private Bitbucket repository.</p>
  
  <p>I can successfully run <code>npm install</code> locally on my system, but it fails on the server.</p>
  
  <p>The error is:</p>
  
  <pre><code>npm ERR! Error while executing:
  npm ERR! /bin/git ls-remote -h -t ssh://git@bitbucket.org/myorg/my-repo.git
  npm ERR! 
  npm ERR! 
  npm ERR! (ssh-askpass:10260): Gtk-WARNING **: cannot open display: :0.0
  npm ERR! Host key verification failed.
  npm ERR! fatal: Could not read from remote repository.
  npm ERR! 
  npm ERR! Please make sure you have the correct access rights
  npm ERR! and the repository exists.
  npm ERR! 
  npm ERR! exited with error code: 128
  </code></pre>
  
  <p>The strange thing is, cloning the repo on the server manually works fine:
  <code>
  git clone git@bitbucket.org:myorg/my-repo
  </code></p>
  
  <p>So the SSH keys are configured correctly.</p>