Commit 3a5402c2a4b9

Vincent Demeester <vincent@sbr.pm>
2026-01-12 15:03:05
fix(ssh): disable IdentityAgent for home/vpn hosts
- Prevent YubiKey prompts when using TRAMP for remote file access - Use regular key-based authentication for internal network hosts - Apply to both *.home and *.vpn host patterns
1 parent 53c5f05
Changed files (1)
home
common
home/common/shell/openssh.nix
@@ -86,6 +86,17 @@
           controlPersist = "360";
         };
       };
+      # Disable IdentityAgent for home network hosts (prevents yubikey prompts in TRAMP)
+      "*.home" = {
+        extraOptions = {
+          IdentityAgent = "none";
+        };
+      };
+      "*.vpn" = {
+        extraOptions = {
+          IdentityAgent = "none";
+        };
+      };
       "*.redhat.com" = {
         user = "vdemeest";
       };