From 75c6072cce6b53db9c3b9cb7adf053cefec0bcae Mon Sep 17 00:00:00 2001 From: Timo Wilken Date: Fri, 2 Jun 2023 23:17:23 +0200 Subject: Share connections to lxtunnel --- tw/home.scm | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'tw/home.scm') diff --git a/tw/home.scm b/tw/home.scm index cade5881..9bc9384a 100644 --- a/tw/home.scm +++ b/tw/home.scm @@ -116,7 +116,15 @@ auto-expand-secmem ;; CERN stuff ,(openssh-host (name "lxtunnel.cern.ch") - (proxy no-proxy)) ; avoid ProxyJump loops + (proxy no-proxy) ; avoid ProxyJump loops + ;; Share a single connection to lxtunnel, to speed up subsequent + ;; connections to the GPN. Keep it open for a few minutes after + ;; the last user connection exits, in case we need it again. + (extra-content "\ + ControlMaster auto + ControlPath ${XDG_RUNTIME_DIR}/ssh_mux_%h_%p_%r + ControlPersist 5m +")) ,(openssh-host (name "lxplus*.cern.ch") ; also catch e.g. lxplus9 (proxy no-proxy) ; no jump needed -- cgit v1.2.3