From: martin f. krafft Date: Fri, 28 Apr 2017 19:19:06 +0000 (+0200) Subject: replace shell helper session with nc proxy for fishbowl X-Git-Url: https://git.madduck.net/etc/ssh.git/commitdiff_plain/f0b9b1cb92294d7a8c41c6025e9cb7a877c70b46?hp=e248e81253be5da789390b60acecd17eb24ab869 replace shell helper session with nc proxy for fishbowl --- diff --git a/.ssh/config.in b/.ssh/config.in index 8d7789f..ac0b9d4 100644 --- a/.ssh/config.in +++ b/.ssh/config.in @@ -281,7 +281,7 @@ Host fishbowl | fishbowl.rw.madduck.net ForwardAgent yes ForwardX11 yes HostKeyAlias fishbowl - ProxyCommand bash -c "TARGETS=$( (TRIES=%h.{gern,lehel,gauting,mtvic,rw}.madduck.net; eval fping -aAC1 -t500 $TRIES 2>&1 & eval fping6 -aAC1 -t500 $TRIES 2>&1; wait) | sed -rne 's, : ([[:digit:]]), @\1,p' | sort -t@ -k2n | sed -ne 's, .*,,p' | tr '\n' ','); echo Targets: \$TARGETS using \${TARGETS%%%%,*} … >&2; nc -vq0 \${TARGETS%%%%,*} %p" + ProxyCommand bash -c "TARGETS=$( (TRIES=%h.{gern,lehel,gauting,mtvic,rw}.madduck.net; eval fping -aAC1 -t500 $TRIES 2>&1 & eval fping6 -aAC1 -t500 $TRIES 2>&1; wait) | sed -rne 's, : ([[:digit:]]), @\1,p' | sort -t@ -k2n | sed -ne 's, .*,,p' | tr '\n' ','); echo Targets: \$TARGETS using \${TARGETS%%%%,*} … >&2; exec nc -vq0 \${TARGETS%%%%,*} %p" ### LOCAL VIRT HOSTS