From 8c304b51264bed4319a55826837f09c38cad2ac5 Mon Sep 17 00:00:00 2001 From: ADAM David Alan Martin Date: Fri, 7 Mar 2025 15:22:26 -0500 Subject: [PATCH] Add a bit of ssh universal configuration. This is intended to work with the `ssh-mgmt` scripts. Maybe its better to move this there? Maybe not? --- ssh/config | 14 ++++++++++++++ startup_hooks/install.sh | 3 +++ 2 files changed, 17 insertions(+) create mode 100644 ssh/config diff --git a/ssh/config b/ssh/config new file mode 100644 index 0000000..fe3085f --- /dev/null +++ b/ssh/config @@ -0,0 +1,14 @@ +CanonicalizeMaxDots 5 +CanonicalizeHostname yes +CanonicalDomains nerdland.org + +Host gitea.* github.com + User git + +Host *.nerdland.org *.nerdland.it.cx + AddressFamily inet6 + +Host * + IdentityFile ~/.ssh/id_%L-%h + +# vim: ft=sshconfig diff --git a/startup_hooks/install.sh b/startup_hooks/install.sh index 64a7942..d5e8fa5 100755 --- a/startup_hooks/install.sh +++ b/startup_hooks/install.sh @@ -72,3 +72,6 @@ echo " signingKey = \"`hostname` Git\"" >> ~/.gitconfig echo "" >> ~/.gitconfig echo "[commit]" >> ~/.gitconfig echo " gpgSign = true" >> ~/.gitconfig + +echo "Do not forget to add the following line at the top of your ssh config:" +echo "Include ${CSHENV_LOCATION}/ssh/config"