title: Unable to mount a directory on Google Compute Engine using sshfs
body: <p>I am trying to mount a remote filesystem on Google Container Engine. I am following this tutorial: <a href="https://www.digitalocean.com/community/tutorials/how-to-use-sshfs-to-mount-remote-file-systems-over-ssh" rel="nofollow">https://www.digitalocean.com/community/tutorials/how-to-use-sshfs-to-mount-remote-file-systems-over-ssh</a></p>
  
  <p>Using following sshfs command: </p>
  
  <pre><code>sudo sshfs -o sshfs_debug,allow_other &lt;instance-name&gt;.&lt;region&gt;.&lt;project_id&gt;:/home/&lt;user_name&gt; /mnt/gce-container
  </code></pre>
  
  <p>I am getting error:</p>
  
  <pre><code>SSHFS version 2.5
  read: Connection reset by peer
  </code></pre>
  
  <p>I referred this link <a href="https://cloud.google.com/sdk/gcloud/reference/compute/config-ssh" rel="nofollow">https://cloud.google.com/sdk/gcloud/reference/compute/config-ssh</a>
  and  could login using ssh via following command: </p>
  
  <pre><code>$gcloud compute config-ssh
  $ssh &lt;instance-name&gt;.&lt;region&gt;.&lt;project_id&gt;
  </code></pre>
  
  <p>Any ideas what might be going wrong here? I can't understand what keys and username should I use for sshfs login. </p>
  
  <p>Update(11/5):
  I am using following command: </p>
  
  <pre><code>sshfs -o IdentityFile=~/.ssh/google_compute_engine &lt;user&gt;@&lt;ip&gt;:~/  /mnt/gce`
  </code></pre>
  
  <p>I have chowned /mnt/gce folder for my user. I checked the IP matches the entry in ~/.ssh/config file. However I still get the error <code>read: Connection reset by peer</code></p>