From 5a0c45b1bf32be057814fe5cf115d1cf512c5f96 Mon Sep 17 00:00:00 2001 From: binaryDiv Date: Sun, 20 Aug 2023 18:45:59 +0200 Subject: [PATCH] ssh_config: Include drop-in configs, set host defaults --- .ssh/config | 19 ++++++++----------- .ssh/config.d/50_hosts.conf | 8 ++++++++ 2 files changed, 16 insertions(+), 11 deletions(-) create mode 100644 .ssh/config.d/50_hosts.conf diff --git a/.ssh/config b/.ssh/config index 69881bf..87af48f 100644 --- a/.ssh/config +++ b/.ssh/config @@ -1,13 +1,10 @@ +# Include drop-in configurations +Include ~/.ssh/config.d/*.conf + +# Global configuration AddKeysToAgent yes -Host afra-door - HostName 172.23.42.69 - ProxyJump afra.fe80.eu - User pi - -Host toriel-dropbear - HostName 192.168.16.4 - User root - RemoteCommand cryptroot-unlock - RequestTTY yes - +# Host defaults +Host * + IdentitiesOnly yes + SendEnv LANG LC_* diff --git a/.ssh/config.d/50_hosts.conf b/.ssh/config.d/50_hosts.conf new file mode 100644 index 0000000..f683fd2 --- /dev/null +++ b/.ssh/config.d/50_hosts.conf @@ -0,0 +1,8 @@ +Host toriel + ForwardAgent yes + +Host toriel-dropbear + HostName 192.168.16.4 + User root + RemoteCommand cryptroot-unlock + RequestTTY yes