summary refs log tree commit diff stats
path: root/user
diff options
context:
space:
mode:
authorAlan Pearce2024-06-09 10:16:27 +0200
committerAlan Pearce2024-06-09 10:16:27 +0200
commitc2654b5d3cb7c7e1b3910be4318960f42c63df51 (patch)
tree9172ab881b9c4ffa3633829bf025e10c0b33afed /user
parentbf7de7385f50af6f668080c83c365255c81f3782 (diff)
downloadnixfiles-c2654b5d3cb7c7e1b3910be4318960f42c63df51.tar.lz
nixfiles-c2654b5d3cb7c7e1b3910be4318960f42c63df51.tar.zst
nixfiles-c2654b5d3cb7c7e1b3910be4318960f42c63df51.zip
ssh: use canonical forms of hostnames with single labels
Diffstat (limited to 'user')
-rw-r--r--user/settings/ssh.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/user/settings/ssh.nix b/user/settings/ssh.nix
index f5073c8d..b7c46bba 100644
--- a/user/settings/ssh.nix
+++ b/user/settings/ssh.nix
@@ -12,6 +12,10 @@
     serverAliveInterval = 15;
     extraConfig = ''
       VerifyHostKeyDNS ask
+      CanonicalizeHostname yes
+      CanonicalizeFallbackLocal no
+      CanonicalizeMaxDots 0
+      CanonicalDomains home.arpa hydra-pinecone.ts.net
     '';
     includes = [
       "local.ssh_config"