From 9a1bf642a288771e323948a16e0d45bee81a69c7 Mon Sep 17 00:00:00 2001 From: shokinn Date: Fri, 23 Aug 2024 15:33:02 +0200 Subject: [PATCH] Use Strongbox agent only when the shell is not opened by ssh --- dotfiles/ssh/config | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dotfiles/ssh/config b/dotfiles/ssh/config index d3766d2..7bc96d9 100644 --- a/dotfiles/ssh/config +++ b/dotfiles/ssh/config @@ -10,6 +10,6 @@ Include config.d/*/*.config {%@@ if profile == 'susanoo.local' or profile == 'WVDEWOBMC001307' @@%}# # This have to be LAST # -Host * +Match host * exec "[[ -z $SSH_CLIENT && -z $SSH_TTY ]]" IdentityAgent "~/Library/Group Containers/group.strongbox.mac.mcguill/agent.sock" {%@@ endif @@%}