From: martin f. krafft Date: Thu, 28 Jul 2016 13:55:21 +0000 (+0200) Subject: properly search for fishbowl in nz X-Git-Url: https://git.madduck.net/etc/ssh.git/commitdiff_plain/672fb6d86c1747f6e03bdb72e6f92fb106d7d4ba?pf=etc properly search for fishbowl in nz --- diff --git a/.ssh/config.in b/.ssh/config.in index f10b637..7231594 100644 --- a/.ssh/config.in +++ b/.ssh/config.in @@ -272,7 +272,7 @@ Host fishbowl | fishbowl.rw.madduck.net ForwardAgent yes ForwardX11 yes HostKeyAlias fishbowl - ProxyCommand bash -c "TARGETS=$( (TRIES=%h.{gern,lehel,gauting,atom,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; nc -vq0 \${TARGETS%%%%,*} %p" ### LOCAL VIRT HOSTS