aboutsummaryrefslogtreecommitdiffstats
path: root/config/shepherd/init.d/bitcoin.scm
diff options
context:
space:
mode:
Diffstat (limited to 'config/shepherd/init.d/bitcoin.scm')
-rw-r--r--config/shepherd/init.d/bitcoin.scm19
1 files changed, 19 insertions, 0 deletions
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 <service>
+ #: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))