Closed bviktor closed 4 years ago
Working entry:
<volume user="*" mountpoint="/media/%(USER)/foobar" path="sshfs#bviktor@foobar.com:/home/bviktor" options="port=922" fstype="fuse" />
But file permissions are weird.
Edit: permissions:
https://serverfault.com/questions/633527/wrong-owner-group-with-sshfs
Pam method doesn't seem to work, but it won't work with keypair auth anyway.
Make a script that
Dunno how to pass things to different credential helpers, so let's just use 'cache' unless otherwise.
pam_mount doesn't seem to work with passphrase-protected keys.
https://unix.stackexchange.com/questions/94720/connection-reset-by-peer-using-sshfs https://unix.stackexchange.com/questions/318246/how-to-set-up-gnome-keyring-for-passwordless-ssh-sshfs-using-the-keyring-to-unlo https://unix.stackexchange.com/questions/108899/storing-the-private-key-password-for-auto-mounting-sshfs/108907 https://askubuntu.com/questions/704398/use-sshfs-with-ssh-agent-and-or-kwallet
It actually works, but only after a manual pam_remount
. Most likely gnome-keyring is unavailable when pam_mount tries to open these. Tried to add the gnome-keyring so to various files under /etc/pam.d
but to no avail, I just broke even more things. Maybe someday.
In any case, things do work now.
Is Pageant really worth it? Troublesome to set up. Also Nautilus SFTP mounts don't work with it (yet?).
On the filesystem: