From 1d748948cf4598ae2cd96021114a9b5a361a16a8 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sat, 7 Feb 2015 14:36:33 -0500 Subject: ssh: Make build64-par work both near and far --- .config/ssh/config | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to '.config/ssh/config') diff --git a/.config/ssh/config b/.config/ssh/config index 7bab06d..00a84b8 100644 --- a/.config/ssh/config +++ b/.config/ssh/config @@ -26,12 +26,15 @@ Host lukeshu.com User lukeshu Host build64-par - Port 22 User luke - ForwardX11 yes - ForwardX11Trusted yes -Host build64-par-far - Port 1864 HostName lukeshu.com - User luke + Port 1864 + ForwardX11 no + ForwardX11Trusted no + + Match host %h.lan. + HostName build64-par + Port 22 + ForwardX11 yes + ForwardX11Trusted yes -- cgit v1.2.3-54-g00ecf From a394973ffedc02a3ea622b353fecbd078b8c0f8e Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sat, 7 Feb 2015 14:38:51 -0500 Subject: Have the link to XDG_RUNTIME_DIR be at ~/.runtime/HOSTNAME --- .config/login.d/90_dot-runtime.sh | 5 ++++- .config/ssh/config | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) (limited to '.config/ssh/config') diff --git a/.config/login.d/90_dot-runtime.sh b/.config/login.d/90_dot-runtime.sh index d597cc7..87d30ec 100644 --- a/.config/login.d/90_dot-runtime.sh +++ b/.config/login.d/90_dot-runtime.sh @@ -1 +1,4 @@ -ln -sfT -- "$XDG_RUNTIME_DIR" ~/.runtime +# This is really only needed for ssh ControlPath; as I don't have a +# way to communicate XD +mkdir -p -- ~/.runtime +ln -sfT -- "$XDG_RUNTIME_DIR" ~/.runtime/"$HOSTNAME" diff --git a/.config/ssh/config b/.config/ssh/config index 00a84b8..07240a6 100644 --- a/.config/ssh/config +++ b/.config/ssh/config @@ -1,7 +1,7 @@ Host * Protocol 2 ControlMaster auto - ControlPath ~/.runtime/ssh-%r@%h:%p + ControlPath ~/.runtime/%l/ssh-%r@%h:%p Compression yes # Purdue ################################################### -- cgit v1.2.3-54-g00ecf