title: How to mount a folder on amazon ec2 instance with private key using sshfs
body: <p>I am trying to mount a folder on my <code>amazon ec2</code> instance to my desktop folder using <code>sshfs</code>.</p>
  
  <p>The problem is that I am not able to figure out how to give the option for private key (awskey.pem).</p>
  
  <p>Normally I <code>ssh</code> using</p>
  
  <pre><code>ssh ec2-user@{amz-ip-address} -i {path to amzkey.pem}
  </code></pre>
  
  <p>But <code>sshfs</code> has no such options. However I saw a <code>-F</code> option and tried</p>
  
  <pre><code>sshfs ec2-user@{amz-ip-address}:{amz-folder}  {my mount dir} -F {path to amzkey.pem}
  </code></pre>
  
  <p>This gave me an error</p>
  
  <blockquote>
    <p>"read: Connection reset by peer"</p>
  </blockquote>
  
  <p>Please let me know if anyone has tried this before.</p>