From 36c7c3a16b6e43be6b6d491a2cbaf252087ae2db Mon Sep 17 00:00:00 2001 From: Hans Goor Date: Sun, 22 Jun 2025 14:07:39 +0100 Subject: [PATCH] Make ssh configuration more platform-independent. --- stowers/ssh/dot-ssh/conf.d/common/config.conf | 1 + stowers/ssh/dot-ssh/{config => conf.d/common/hosts.conf} | 4 ---- stowers/ssh/dot-ssh/conf.d/platform/macos.conf | 1 + stowers/ssh/dot-ssh/config.base | 2 ++ 4 files changed, 4 insertions(+), 4 deletions(-) create mode 100644 stowers/ssh/dot-ssh/conf.d/common/config.conf rename stowers/ssh/dot-ssh/{config => conf.d/common/hosts.conf} (96%) create mode 100644 stowers/ssh/dot-ssh/conf.d/platform/macos.conf create mode 100644 stowers/ssh/dot-ssh/config.base diff --git a/stowers/ssh/dot-ssh/conf.d/common/config.conf b/stowers/ssh/dot-ssh/conf.d/common/config.conf new file mode 100644 index 0000000..07ff3a5 --- /dev/null +++ b/stowers/ssh/dot-ssh/conf.d/common/config.conf @@ -0,0 +1 @@ +AddKeysToAgent yes diff --git a/stowers/ssh/dot-ssh/config b/stowers/ssh/dot-ssh/conf.d/common/hosts.conf similarity index 96% rename from stowers/ssh/dot-ssh/config rename to stowers/ssh/dot-ssh/conf.d/common/hosts.conf index 300ea3d..21a670d 100644 --- a/stowers/ssh/dot-ssh/config +++ b/stowers/ssh/dot-ssh/conf.d/common/hosts.conf @@ -1,7 +1,3 @@ -# -AddKeysToAgent yes -UseKeychain yes - Host localhost UserKnownHostsFile /dev/null StrictHostKeyChecking no diff --git a/stowers/ssh/dot-ssh/conf.d/platform/macos.conf b/stowers/ssh/dot-ssh/conf.d/platform/macos.conf new file mode 100644 index 0000000..e495e94 --- /dev/null +++ b/stowers/ssh/dot-ssh/conf.d/platform/macos.conf @@ -0,0 +1 @@ +UseKeychain yes diff --git a/stowers/ssh/dot-ssh/config.base b/stowers/ssh/dot-ssh/config.base new file mode 100644 index 0000000..a07b436 --- /dev/null +++ b/stowers/ssh/dot-ssh/config.base @@ -0,0 +1,2 @@ +Include conf.d/common/config.conf +Include conf.d/common/hosts.conf