]> git.donarmstrong.com Git - home-base.git/commitdiff
* 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 bc7a4fea7e2a912ffe619669b417f7dbe471c97e..e058c79f7197e5a283b3e30443c90d8e73cb0d27 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