Commit c519f18

HPCesia <me@hpcesia.com>
2025-06-02 17:56:10
feat: update ssh config
1 parent 90d73c5
Changed files (1)
home
base
home/base/tui/ssh.nix
@@ -1,5 +1,20 @@
 {...}: {
   programs.ssh = {
     enable = true;
+    addKeysToAgent = "yes";
+
+    matchBlocks = {
+      "github.com" = {
+        # "Using SSH over the HTTPS port for GitHub"
+        # "(port 22 is banned by some proxies / firewalls)"
+        hostname = "ssh.github.com";
+        port = 443;
+        user = "git";
+
+        # Specifies that ssh should only use the identity file explicitly configured above
+        # required to prevent sending default identity files first.
+        identitiesOnly = true;
+      };
+    };
   };
 }