summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f6bb39e)
raw | patch | inline | side by side (parent: f6bb39e)
author | Ian Kelling <ian@iankelling.org> | |
Mon, 8 Jul 2024 01:27:46 +0000 (21:27 -0400) | ||
committer | Ian Kelling <ian@iankelling.org> | |
Mon, 8 Jul 2024 01:27:46 +0000 (21:27 -0400) |
brc | patch | blob | history | |
rootsshsync | patch | blob | history |
index 4e0a26a74fd2ae91d17cd9c6b791a9dd8b5e29cd..105d7543a4233b525dca6e37826fc1cb450984b7 100644 (file)
--- a/brc
+++ b/brc
# 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 9db6b73d95d27bfefc81cc4c14386fa1b0d7422f..afa71b5ba58859bab64837ae7c1dd2f887a38b61 100755 (executable)
--- a/rootsshsync
+++ b/rootsshsync
# 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