* set a local timeout when calling nc
authorDon Armstrong <don@donarmstrong.com>
Fri, 5 Feb 2010 18:29:41 +0000 (18:29 +0000)
committerDon Armstrong <don@donarmstrong.com>
Fri, 5 Feb 2010 18:29:41 +0000 (18:29 +0000)
.ssh/config

index 669daea..68b9b42 100644 (file)
@@ -4,7 +4,7 @@ Host frogsleap.com
 Host rietz.debian.org
   IdentityFile ~/.ssh/identity_debian
   UserKnownHostsFile ~/.ssh/known_hosts_debian
-  ProxyCommand sh -c 'if [ $(hostname) == "archimedes" ]; then exec nc rietz.debian.org 22 2>/dev/null; else exec ssh archimedes.ucr.edu nc rietz.debian.org 22 2>/dev/null; fi;'
+  ProxyCommand sh -c 'if [ $(hostname) == "archimedes" ]; then exec nc -q 1:0 rietz.debian.org 22 2>/dev/null; else exec ssh archimedes.ucr.edu nc -q 1:0 rietz.debian.org 22 2>/dev/null; fi;'
 Host *.debian.org
   IdentityFile ~/.ssh/identity_debian
   UserKnownHostsFile ~/.ssh/known_hosts_debian