Skip to content

Commit

Permalink
ssh: Adds support for config.d
Browse files Browse the repository at this point in the history
  • Loading branch information
kenorb committed Mar 24, 2024
1 parent 3768bd0 commit 7a6b334
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 15 deletions.
18 changes: 3 additions & 15 deletions .ssh/config
Original file line number Diff line number Diff line change
@@ -1,22 +1,10 @@
# Includes all config files from config.d/ directory.
Include config.d/*

Host *
TCPKeepAlive yes
ServerAliveInterval 120
ControlMaster auto
ControlPath /tmp/ssh_mux_%h_%p_%r
# ControlPath ~/.ssh/connections/ssh-%r@%h:%p
SetEnv LC_ALL=C

Host bitbucket.org
User git
Hostname bitbucket.org

Host github.com
User git
Hostname github.com
ServerAliveInterval 60
ControlPersist 1h

Host local
Hostname 127.0.0.1
User kenorb
IdentityFile ~/.ssh/id_rsa
9 changes: 9 additions & 0 deletions .ssh/config.d/git
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Host bitbucket.org
User git
Hostname bitbucket.org

Host github.com
User git
Hostname github.com
ServerAliveInterval 60
ControlPersist 1h
5 changes: 5 additions & 0 deletions .ssh/config.d/local
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Host local
Hostname 127.0.0.1
User kenorb
IdentityFile ~/.ssh/id_ed25519
IdentityFile ~/.ssh/id_rsa

0 comments on commit 7a6b334

Please sign in to comment.