From 9431652586b54f4f5d28d629a1e1adfe13361d4a Mon Sep 17 00:00:00 2001 From: Ian Kelling Date: Sun, 7 Jul 2024 21:27:46 -0400 Subject: [PATCH] minor improvement --- brc | 2 +- rootsshsync | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/brc b/brc index 4e0a26a..105d754 100644 --- 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() { diff --git a/rootsshsync b/rootsshsync index 9db6b73..afa71b5 100755 --- a/rootsshsync +++ b/rootsshsync @@ -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 -- 2.30.2