aboutsummaryrefslogtreecommitdiff
path: root/nix/users/fcuny/ssh.nix
diff options
context:
space:
mode:
authorFranck Cuny <59291+fcuny@users.noreply.github.com>2025-01-31 13:41:53 -0800
committerFranck Cuny <59291+fcuny@users.noreply.github.com>2025-01-31 13:41:53 -0800
commit40352175588e52463592ea08cd3ba1adff873f44 (patch)
tree12d9960579e9aaaf6a1f549b0acb3304e5fffcbd /nix/users/fcuny/ssh.nix
parentinclude SAPI's configuration if it's present (diff)
downloadinfra-40352175588e52463592ea08cd3ba1adff873f44.tar.gz
fix configuration for SAPI
Diffstat (limited to 'nix/users/fcuny/ssh.nix')
-rw-r--r--nix/users/fcuny/ssh.nix12
1 files changed, 9 insertions, 3 deletions
diff --git a/nix/users/fcuny/ssh.nix b/nix/users/fcuny/ssh.nix
index ca0baca..f8c1468 100644
--- a/nix/users/fcuny/ssh.nix
+++ b/nix/users/fcuny/ssh.nix
@@ -25,9 +25,15 @@
preferredAuthentications = "publickey";
};
};
+ "chi1-jumpcontainer-es" = {
+ hostname = "127.0.0.1";
+ port = 44641;
+ extraOptions = {
+ NoHostAuthenticationForLocalhost = "yes";
+ ControlPath = "~/.ssh/sapi_controlmasters/%r@%h:%p";
+ ControlPersist = "10m";
+ };
+ };
};
};
-
- # if the configuration for SAPI exists, let's include it.
- programs.ssh.includes = lib.optional (builtins.pathExists "/Users/fcuny/.ssh/config/config_sapi") "~/.ssh/config/config_sapi";
}