minor improvement
authorIan Kelling <ian@iankelling.org>
Mon, 8 Jul 2024 01:27:46 +0000 (21:27 -0400)
committerIan Kelling <ian@iankelling.org>
Mon, 8 Jul 2024 01:27:46 +0000 (21:27 -0400)
brc
rootsshsync

diff --git a/brc b/brc
index 4e0a26a74fd2ae91d17cd9c6b791a9dd8b5e29cd..105d7543a4233b525dca6e37826fc1cb450984b7 100644 (file)
--- a/brc
+++ b/brc
@@ -3004,7 +3004,7 @@ slr() {
 
 # ssh with multiplexing.
 ssm() {
-  sl -oControlPath=/tmp/ssh_mux_%u_%h_%p_%r "$@"
+  sl -oControlPath=$HOME/.cssh_%u_%h_%p_%r "$@"
 }
 # ssh solo, without multiplexing. # currently the default, but I might switch back.
 sss() {
index 9db6b73d95d27bfefc81cc4c14386fa1b0d7422f..afa71b5ba58859bab64837ae7c1dd2f887a38b61 100755 (executable)
@@ -67,7 +67,7 @@ if [[ -e $user_ssh_dir/config ]]; then
   # forgetting to use confighome, and then after specifying it,
   # it uses the multiplex socket, which means that the different
   # key in confighome is not actually used unless we do ssh -O exit HOST.
-  sed 's,^IdentityFile ~/\.ssh/home$,IdentityFile ~/\.ssh/h\nControlPath /tmp/ssh_hmux_%u_%h_%p_%r,' /root/.ssh/confighome >/root/.ssh/config
+  sed 's,^IdentityFile ~/\.ssh/home$,IdentityFile ~/\.ssh/h\nControlPath ${HOME}/.chssh_%u_%h_%p_%r,' /root/.ssh/confighome >/root/.ssh/config
 fi
 chown -R root:root /root/.ssh