From e97f570f69dd6328520cf35ffdea2844e2a9d682 Mon Sep 17 00:00:00 2001 From: Oscar Najera Date: Sun, 23 Apr 2023 19:19:56 +0200 Subject: remote services --- config/shepherd/init.d/bitcoin.scm | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'config/shepherd/init.d/bitcoin.scm') diff --git a/config/shepherd/init.d/bitcoin.scm b/config/shepherd/init.d/bitcoin.scm index 93f76a3..46c4ac0 100644 --- a/config/shepherd/init.d/bitcoin.scm +++ b/config/shepherd/init.d/bitcoin.scm @@ -40,3 +40,22 @@ "--noseedbackup")) #:stop (make-kill-destructor 2) ;; 2 is SIGINT - interupt process stream, ctrl-C #:respawn? #t)) + +;; ssh +(register-services + (make + #:docstring "Sarah ssh tunnel" + #:provides '(sarah-ssh) + #:start (make-forkexec-constructor + (list "ssh" "-NTv" + "-o" "ServerAliveInterval=60" + "-o" "ExitOnForwardFailure=yes" + "-o" "StreamLocalBindUnlink=yes" + "-L" "8335:localhost:8332" ;; btcm + "-L" "18335:localhost:18332" ;; btct + "-L" "8481:localhost:8480" ;; LNDT + "orchest@sarah") + #:log-file "/tmp/sarah-ssh.log" + #:environment-variables '("SSH_AUTH_SOCK=/run/user/1000/gnupg/S.gpg-agent.ssh")) + #:stop (make-kill-destructor 2) ;; 2 is SIGINT - interupt process stream, ctrl-C + #:respawn? #t)) -- cgit v1.2.3