Hi, Thank you for the patch! pinoaffe writes: > * doc/guix.texi: Add documentation. > * gnu/services/ssh.scm (): New record type. > (mpd-service-type): New service type. > --- > doc/guix.texi | 75 +++++++++++++++++++++++++++++ > gnu/services/ssh.scm | 109 ++++++++++++++++++++++++++++++++++++++++++- > 2 files changed, 183 insertions(+), 1 deletion(-) > > diff --git a/doc/guix.texi b/doc/guix.texi > index c571010bc8..f88859c584 100644 > --- a/doc/guix.texi > +++ b/doc/guix.texi […] > +@lisp > +(autossh (autossh-configuration > + (user "pino") > + (ssh-options (list "-T" "-N" "-L" "8081:localhost:8081" "remote.net")))) > +@end lisp > +@end deffn --8<---------------cut here---------------start------------->8--- (service autossh-service-type (autossh-configuration (user "pino") (ssh-options (list "-T" "-N" "-L" "8081:localhost:8081" "remote.net")))) --8<---------------cut here---------------end--------------->8--- […] > diff --git a/gnu/services/ssh.scm b/gnu/services/ssh.scm > index d2dbb8f80d..ec0150b3a2 100644 > --- a/gnu/services/ssh.scm > +++ b/gnu/services/ssh.scm […] > +(define (autossh-service-activation config) > + (with-imported-modules '((guix build utils)) > + #~(begin > + (use-modules (guix build utils)) > + (define %user > + (getpw #$(autossh-configuration-user config))) > + (let ((directory #$(autossh-file-name config ""))) > + (mkdir-p directory) > + (chown directory (passwd:uid %user) (passwd:gid %user)))))) I cannot start the service in a testing vm because of log file is owner by root. The following fixes this.