Skip to main content

Mount a remote filesystem over SSH

·1 min
  • Install SSHFS.
  • Add something like the following to the /etc/fstab file. (Here, you can put more specific path after the colon in the first term.)
    de1682@de1682.rsync.net:foo /mnt/rsync  fuse.sshfs noauto,x-systemd.automount,_netdev,IdentityFile=/root/.ssh/id_ed25519,allow_other,reconnect 0 0
    
  • Restart the computer.

If you aren’t able to use this as a datastore in Proxmox Backup Server, try this (as per this):

  • Create a local datastore.
  • Copy over its contents to the SSHFS-ed directory.
  • Modify /etc/proxmox-backup/datastore.cfg to point the datastore to the new directory.

Resources: