[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Mount sshfs at boot or login
From: |
Oleg Pykhalov |
Subject: |
Re: Mount sshfs at boot or login |
Date: |
Thu, 10 Feb 2022 03:18:59 +0300 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
Hi,
Reza Housseini <reza.housseini@gmail.com> writes:
> I am searching a possible configuration to mount an sshfs filesystem
> at boot or login. Do I use the pam-mount-service-type [1] for this?
> Are there any examples of a configuration? Additionally I would like
> to use encfs on top of the mounted sshfs, also when possible at boot
> or login?
I don't think PAM is required.
Personally I use autofs service [1], but it's not upstreamed to Guix
repository because of:
- restarting service does not work, need to stop and start instead.
- mount -t fuse requires /bin/ssh and /bin/sshfs [2]
Other that that, it works pretty well with configuration:
--8<---------------cut here---------------start------------->8---
(service autofs-service-type
(autofs-configuration
(mounts (list
(autofs-mount-configuration
(target "/mnt/ssh/workstation")
(source ":sshfs\\#ws1.wugi.info\\:/home/oleg"))))))
;; mount -t fuse and autofs
(extra-special-file "/bin/sshfs"
(file-append sshfs "/bin/sshfs"))
(extra-special-file "/bin/ssh"
(file-append openssh "/bin/ssh"))
--8<---------------cut here---------------end--------------->8---
[1]
https://gitlab.com/wigust/dotfiles/-/blob/cbaf864f29b7568454d2089666f64e45adfcb06f/dotfiles/guixsd/modules/services/autofs.scm
[2] https://issues.guix.gnu.org/42036
signature.asc
Description: PGP signature