From 79ccaaa8fe8d66d6e7014f9c79298dcfb9ad5b12 Mon Sep 17 00:00:00 2001 From: xvzc Date: Thu, 18 Jul 2024 09:51:49 +0900 Subject: [PATCH] No commit message --- private_dot_ssh/private_config | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/private_dot_ssh/private_config b/private_dot_ssh/private_config index 0d00c1b..5557642 100644 --- a/private_dot_ssh/private_config +++ b/private_dot_ssh/private_config @@ -4,13 +4,13 @@ Include ~/.ssh/local.config # # {{ if eq .osid "darwin" }} Host home - StrictHostKeyChecking no HostName home.xvzc.dev User jerry - IdentitiesOnly yes - IdentityFile ~/.ssh/arch.pub IdentityAgent "~/Library/Group Containers/2BUA8C4S2C.com.1password/t/agent.sock" ForwardAgent yes + StrictHostKeyChecking no + IdentitiesOnly yes + IdentityFile ~/.ssh/arch.pub Host xvzc.github.com HostName github.com @@ -20,8 +20,12 @@ Host xvzc.github.com IdentityFile ~/.ssh/xvzc.pub # # {{ else if eq .osid "linux-arch" }} - -Match host * exec "test -z $SSH_CONNECTION" - IdentityAgent "~/.1password/agent.sock" +Host home +Host xvzc.github.com + HostName github.com + ForwardAgent yes + IdentitiesOnly yes + IdentityAgent "~/.1password/agent.sock" + IdentityFile ~/.ssh/xvzc.pub # # {{ end }}