feat(config): split ssh configuration by host

This commit is contained in:
2023-07-23 17:17:08 +03:00
parent 4ec9444e29
commit 87281a436f
5 changed files with 12 additions and 7 deletions

2
.gitignore vendored
View File

@@ -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

View File

@@ -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"

0
ssh/local.d/.gitkeep Normal file
View File

3
ssh/shared.d/github Normal file
View File

@@ -0,0 +1,3 @@
Host github.com
User git

5
ssh/shared.d/lakka Normal file
View File

@@ -0,0 +1,5 @@
Host lakka
User viir
HostName lakka.kapsi.fi
IdentityFile ~/.ssh/id_rsa