From: Ian Kelling Date: Mon, 8 Jul 2024 01:27:46 +0000 (-0400) Subject: minor improvement X-Git-Url: https://iankelling.org/git/?a=commitdiff_plain;h=9431652586b54f4f5d28d629a1e1adfe13361d4a;p=distro-setup minor improvement --- 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