]> git.donarmstrong.com Git - home-base.git/commitdiff
* 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 669daeab9ce3b459a11232bb072abd88f93f7617..68b9b4252f123d19ed1b29562155f366ff496ea2 100644 (file)
@@ -4,7 +4,7 @@ Host frogsleap.com
 Host rietz.debian.org
   IdentityFile ~/.ssh/identity_debian
   UserKnownHostsFile ~/.ssh/known_hosts_debian
 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
 Host *.debian.org
   IdentityFile ~/.ssh/identity_debian
   UserKnownHostsFile ~/.ssh/known_hosts_debian