title: SSHFS works on command line but not within fstab
body: <p>I am trying to connect two servers with SSHFS.</p>
  <p>As root, when launching the command <code>sshfs myuser@ip_adress:/some/dir /other/dir -o idmap=user,identityfile=/home/myuser/.ssh/id_rsa</code>, everything works.</p>
  <p>However, when I set this SSHFS configuration in <code>/etc/fstab</code> and running <code>mount -a</code>, it hangs. The line in <code>/etc/fstab</code> is:</p>
  <pre><code>myuser@ip_adress:/some/dir /other/dir  fuse.sshfs defaults,_netdev,IdentityFile=/home/myuser/.ssh/id_rsa 0 0
  </code></pre>
  <p>I have tried a lot of options but so far, nothing works.</p>
  <p>By adding <code>ssh_command=ssh\040-vv,sshfs_debug,debug</code> in the <code>/etc/fstab</code> options and running <code>mount -av</code>, I have the following output:</p>
  <pre><code>executing &lt;ssh&gt; &lt;-vvv&gt; &lt;-x&gt; &lt;-a&gt; &lt;-oClearAllForwardings=yes&gt; &lt;-oidentityfile=/home/myuser/.ssh/id_rsa&gt; &lt;-2&gt; &lt;myuser@ip_adress&gt; &lt;-s&gt; &lt;sftp&gt;
  OpenSSH_8.4p1 Debian-5, OpenSSL 1.1.1k  25 Mar 2021
  debug1: Reading configuration data /etc/ssh/ssh_config
  debug1: /etc/ssh/ssh_config line 19: include /etc/ssh/ssh_config.d/*.conf matched no files
  debug1: /etc/ssh/ssh_config line 21: Applying options for *
  debug2: resolve_canonicalize: hostname ip_address is address
  debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts' -&gt; '/root/.ssh/known_hosts'
  debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts2' -&gt; '/root/.ssh/known_hosts2'
  debug2: ssh_connect_direct
  debug1: Connecting to ip_address [ip_address] port 22.
  debug1: Connection established.
  </code></pre>
  <p>I don't see why the SSH connection is hanging at this point.</p>
  <p>Do you know what is the issue?</p>
  <p>Thank you</p>