From 87281a436fe26ec37d91ae59abd2529181c7e6f4 Mon Sep 17 00:00:00 2001 From: Ismo Vuorinen Date: Sun, 23 Jul 2023 17:17:08 +0300 Subject: [PATCH] feat(config): split ssh configuration by host --- .gitignore | 2 ++ ssh/config | 9 ++------- ssh/local.d/.gitkeep | 0 ssh/shared.d/github | 3 +++ ssh/shared.d/lakka | 5 +++++ 5 files changed, 12 insertions(+), 7 deletions(-) create mode 100644 ssh/local.d/.gitkeep create mode 100644 ssh/shared.d/github create mode 100644 ssh/shared.d/lakka diff --git a/.gitignore b/.gitignore index 53120a7..9d2f977 100644 --- a/.gitignore +++ b/.gitignore @@ -7,6 +7,8 @@ Brewfile.lock.json config/fzf config/cheat/cheatsheets/pure-bash-bible/* config/cheat/cheatsheets/tldr/* +ssh/local.d/* +!ssh/local.d/.gitkeep !.gitkeep .env diff --git a/ssh/config b/ssh/config index 3c61cbf..53a97d7 100644 --- a/ssh/config +++ b/ssh/config @@ -1,10 +1,5 @@ -Host github.com - User git - -Host lakka - User viir - HostName lakka.kapsi.fi - IdentityFile ~/.ssh/id_rsa +Include shared.d/* +Include local.d/* Host * # IdentityAgent "~/Library/Group Containers/2BUA8C4S2C.com.1password/t/agent.sock" diff --git a/ssh/local.d/.gitkeep b/ssh/local.d/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/ssh/shared.d/github b/ssh/shared.d/github new file mode 100644 index 0000000..5796471 --- /dev/null +++ b/ssh/shared.d/github @@ -0,0 +1,3 @@ +Host github.com + User git + diff --git a/ssh/shared.d/lakka b/ssh/shared.d/lakka new file mode 100644 index 0000000..72b35ac --- /dev/null +++ b/ssh/shared.d/lakka @@ -0,0 +1,5 @@ +Host lakka + User viir + HostName lakka.kapsi.fi + IdentityFile ~/.ssh/id_rsa +