git.lirion.de

Of git, get, and gud

aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormail_redacted_for_web 2022-07-16 11:13:52 +0200
committermail_redacted_for_web 2022-07-16 11:13:52 +0200
commitd83a51722f5779626ca68dbaa831cbd1bde319d8 (patch)
treeb94dda9c603becdcb8ef9c372bec4d4a39de4acd
parentbb718a1fbb4f8729bc03f9b2866191fed177860c (diff)
downloaddotfiles-d83a51722f5779626ca68dbaa831cbd1bde319d8.tar.bz2
+ssh control master
-rw-r--r--.bash/aliases.bash1
-rw-r--r--.gitignore2
-rw-r--r--.ssh/config1
-rw-r--r--.ssh/config.d/all.conf16
4 files changed, 20 insertions, 0 deletions
diff --git a/.bash/aliases.bash b/.bash/aliases.bash
index 1b9698e..86334b7 100644
--- a/.bash/aliases.bash
+++ b/.bash/aliases.bash
@@ -79,6 +79,7 @@ function add-sshagent-init {
fi
done
}
+alias sshmaster='ssh -O'
# ----- FS ----- #
xstat() {
for target in "${@}";do
diff --git a/.gitignore b/.gitignore
index 01001ee..27676a8 100644
--- a/.gitignore
+++ b/.gitignore
@@ -26,3 +26,5 @@
!/tmux-yank
!/.tmux.conf*
!/.vimrc
+!/.ssh/config
+!/.ssh/condig.d/all.conf
diff --git a/.ssh/config b/.ssh/config
new file mode 100644
index 0000000..51ec533
--- /dev/null
+++ b/.ssh/config
@@ -0,0 +1 @@
+Include ~/.ssh/config.d/*.conf
diff --git a/.ssh/config.d/all.conf b/.ssh/config.d/all.conf
new file mode 100644
index 0000000..54a6137
--- /dev/null
+++ b/.ssh/config.d/all.conf
@@ -0,0 +1,16 @@
+# vim:syntax=sshconfig:ts=4
+# in case of no ssh-agent:
+#IdentityFile ~/.ssh/id_ed25519
+#IdentityFile ~/.ssh/id_rsa
+# ...place that inside an extra .conf file.
+SendEnv LANG LC_* MUTTEXEC
+HashKnownHosts yes
+ForwardAgent yes
+ControlMaster auto
+ControlPath /run/user/%i/ssh/cm-%r@%h:%p
+
+# ControlMaster: to use SSH multiplexing with ProxyCommand (e.g. to reach host b through host a)
+# Host b
+# Hostname b.example.com
+# ProxyCommand ssh a.example.com -W %h:%p
+# # controlpath, controlmaster are the same as above