I rent SFTP storage from rsync.net. It took me awhile to figure out how to properly mount it on my Proxmox Backup Server but, in the end, looks quite simple. (This should work for Hetzner Storage Boxes as well.)
First, install sshfs or something.
Second, put the following in the /etc/fstab file:
de1682@de1682.rsync.net:proxmox-backup-server/mnt/datastore/local-1 /mnt/rsyncnet fuse.sshfs x-systemd.automount,reconnect,identityfile=/root/.ssh/id_ed25519,allow_other,uid=34,gid=34 0 0
I believe the corresponding mount command, for manual mount, is:
mount -t fuse.sshfs \
de1682@de1682.rsync.net:pbs \
/mnt/rsyncnet \
-o reconnect,IdentityFile=/root/.ssh/id_ed25519,allow_other,uid=34,gid=34
Third, you can’t directly create a datastore from PBS’s UI. Instead, create a dummy one (with an arbitrary directory on host) and then switch the location for that with the one above by modifying the /etc/proxmox-backup/datastore.cfg file.
Resources: