* add rule to connect to rietz from anywhere via archimedes
authorDon Armstrong <don@donarmstrong.com>
Sat, 23 Jan 2010 21:28:32 +0000 (21:28 +0000)
committerDon Armstrong <don@donarmstrong.com>
Sat, 23 Jan 2010 21:28:32 +0000 (21:28 +0000)
.ssh/config

index bc7a4fe..e058c79 100644 (file)
@@ -1,6 +1,10 @@
 Host frogsleap.com
   User frogsleap
   IdentityFile ~/.ssh/identity_frogsleap
+Host rietz.debian.org
+  IdentityFile ~/.ssh/identity_debian
+  UserKnownHostsFile ~/.ssh/known_hosts_debian
+  ProxyCommand sh -c 'if [ $(hostname) == "archimedes" ]; then nc rietz.debian.org 22 2>/dev/null; else ssh archimedes.ucr.edu nc rietz.debian.org 22 2>/dev/null; fi;'
 Host *.debian.org
   IdentityFile ~/.ssh/identity_debian
   UserKnownHostsFile ~/.ssh/known_hosts_debian