title: ubuntu 14.04 public key authentication not working
body: <p>I am running an ubuntu 14.04 vm in VirtualBox.</p>
  
  <p>I am trying to set up public key authentication. </p>
  
  <p>I get the following debug info with the -vvv parameter:</p>
  
  <pre><code>hduser@peter-VirtualBox:/var/log$ ssh -vvv localhost
  OpenSSH_6.6.1, OpenSSL 1.0.1f 6 Jan 2014
  debug1: Reading configuration data /etc/ssh/ssh_config
  debug1: /etc/ssh/ssh_config line 19: Applying options for *
  debug2: ssh_connect: needpriv 0
  debug1: Connecting to localhost [127.0.0.1] port 22.
  debug1: connect to address 127.0.0.1 port 22: Connection refused
  ssh: connect to host localhost port 22: Connection refused
  </code></pre>
  
  <p>I searched some forums and found one suggestion that i confirm that my home directory, ~/.ssh and ~/.ssh/authorized_keys files are ONLY writable by myself, which is true.</p>
  
  <p>anybody have any suggestions? </p>