diff .ssh/config @ 186:83f164405755

New 'onsubnet' command, new config for master controls
author Steve Huston <huston@astro.princeton.edu>
date Tue, 03 Mar 2020 16:48:59 -0500
parents d8596a04bdb1
children f5969673c794
line wrap: on
line diff
--- a/.ssh/config	Tue Mar 03 15:59:27 2020 -0500
+++ b/.ssh/config	Tue Mar 03 16:48:59 2020 -0500
@@ -4,6 +4,22 @@
   ForwardX11 no
   ForwardX11Trusted no
 
+# Let's try a proxy connection here
+Host xanadu.astro.princeton.edu
+  User huston
+  ControlMaster auto
+  ControlPersist yes
+  ControlPath ~/.ssh/sockets/%C
+
+Match host csesbh2.princeton.edu exec "~/.ssh/onsubnet --not 128.112."
+  ProxyJump xanadu.astro.princeton.edu
+
+Host csesbh2.princeton.edu
+  User huston
+  ControlMaster auto
+  ControlPersist yes
+  ControlPath ~/.ssh/sockets/%C
+
 # xanadu-vm and syrinx's keys change, let's try to avoid errors
 Host xanadu-vm syrinx xanadu-vm.astro.princeton.edu syrinx.astro.princeton.edu
   User huston