unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
* Mount sshfs at boot or login
@ 2022-02-09 14:46 Reza Housseini
  2022-02-10  0:18 ` Oleg Pykhalov
  0 siblings, 1 reply; 2+ messages in thread
From: Reza Housseini @ 2022-02-09 14:46 UTC (permalink / raw)
  To: help-guix

Hi Guixers

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?

Thanks for any advice?

Cheers,
Reza

[1] https://guix.gnu.org/manual/en/html_node/PAM-Mount-Service.html

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Mount sshfs at boot or login
  2022-02-09 14:46 Mount sshfs at boot or login Reza Housseini
@ 2022-02-10  0:18 ` Oleg Pykhalov
  0 siblings, 0 replies; 2+ messages in thread
From: Oleg Pykhalov @ 2022-02-10  0:18 UTC (permalink / raw)
  To: Reza Housseini; +Cc: help-guix

[-- Attachment #1: Type: text/plain, Size: 1417 bytes --]

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

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 861 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-02-10  0:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-09 14:46 Mount sshfs at boot or login Reza Housseini
2022-02-10  0:18 ` Oleg Pykhalov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).