From 7a6b3349c3f5614edf25ab7afbd47369335e99ff Mon Sep 17 00:00:00 2001 From: kenorb Date: Sun, 24 Mar 2024 20:45:50 +0000 Subject: [PATCH] ssh: Adds support for config.d --- .ssh/config | 18 +++--------------- .ssh/config.d/git | 9 +++++++++ .ssh/config.d/local | 5 +++++ 3 files changed, 17 insertions(+), 15 deletions(-) create mode 100644 .ssh/config.d/git create mode 100644 .ssh/config.d/local diff --git a/.ssh/config b/.ssh/config index d9f83d9..5f514a8 100644 --- a/.ssh/config +++ b/.ssh/config @@ -1,3 +1,6 @@ +# Includes all config files from config.d/ directory. +Include config.d/* + Host * TCPKeepAlive yes ServerAliveInterval 120 @@ -5,18 +8,3 @@ Host * 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 diff --git a/.ssh/config.d/git b/.ssh/config.d/git new file mode 100644 index 0000000..56a7ba9 --- /dev/null +++ b/.ssh/config.d/git @@ -0,0 +1,9 @@ +Host bitbucket.org + User git + Hostname bitbucket.org + +Host github.com + User git + Hostname github.com + ServerAliveInterval 60 + ControlPersist 1h diff --git a/.ssh/config.d/local b/.ssh/config.d/local new file mode 100644 index 0000000..3855f90 --- /dev/null +++ b/.ssh/config.d/local @@ -0,0 +1,5 @@ +Host local + Hostname 127.0.0.1 + User kenorb + IdentityFile ~/.ssh/id_ed25519 + IdentityFile ~/.ssh/id_rsa