title: Auto-mounting of remote folder with SSHFS without giving shell access?
body: <p>I have built two VMs inside Proxmox, let's call them A and B, and both of them are running ubuntu 20.04.</p>
  <p>For A, it has a 2 TB SSD passed to it which it mounts on boot. I would like system B to mount a folder in A (located at /mnt/SSD/folderB) automatically when B boots. To do so, I have added a user, remoteB, on system A without granting shell access, and I jailed its SFTP access within folderB. On doing so, I could SFTP to system A using the user &quot;remoteB&quot; on any other systems.</p>
  <p>By installing SSHFS on system B, I was able to mount the drive on system B with the configurations above (I followed this tutorial:<a href="https://linuxize.com/post/how-to-use-sshfs-to-mount-remote-directories-over-ssh/" rel="nofollow noreferrer">https://linuxize.com/post/how-to-use-sshfs-to-mount-remote-directories-over-ssh/</a>)</p>
  <p>Then, I wanted to auto-mount folderB on system B as it boots. From the tutorial, I need to setup &quot;SSH key-based authentication&quot; between system A and system B. It seems I need to grant shell access to a user in order for the above to work, did I misunderstand something?</p>
  <p>Is it possible to do so without granting remoteB shell access on systemA?</p>