From 42105dd9f70699043dc1c8f9e1597dc0044ff703 Mon Sep 17 00:00:00 2001 From: Franck Cuny <59291+fcuny@users.noreply.github.com> Date: Fri, 7 Feb 2025 08:48:42 -0800 Subject: store all ssh sockets under the same path --- nix/users/fcuny/ssh.nix | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'nix') diff --git a/nix/users/fcuny/ssh.nix b/nix/users/fcuny/ssh.nix index f8c1468..5e7eb46 100644 --- a/nix/users/fcuny/ssh.nix +++ b/nix/users/fcuny/ssh.nix @@ -1,4 +1,4 @@ -{ ... }: +{ config, ... }: { # https://github.com/nix-community/home-manager/blob/master/modules/programs/ssh.nix programs.ssh = { @@ -7,6 +7,7 @@ serverAliveInterval = 60; controlMaster = "auto"; controlPersist = "30m"; + controlPath = "${config.home.homeDirectory}/.ssh/sockets/S.%r@%h:%p"; matchBlocks = { "github.com" = { @@ -25,15 +26,6 @@ preferredAuthentications = "publickey"; }; }; - "chi1-jumpcontainer-es" = { - hostname = "127.0.0.1"; - port = 44641; - extraOptions = { - NoHostAuthenticationForLocalhost = "yes"; - ControlPath = "~/.ssh/sapi_controlmasters/%r@%h:%p"; - ControlPersist = "10m"; - }; - }; }; }; } -- cgit v1.2.3