Kaynağa Gözat

[ssh] Fix using agents for login

Colin Powell 4 gün önce
ebeveyn
işleme
464ed6ec06
1 değiştirilmiş dosya ile 9 ekleme ve 4 silme
  1. 9 4
      ssh/.ssh/config

+ 9 - 4
ssh/.ssh/config

@@ -1,3 +1,5 @@
+Include /Users/colin.powell/.colima/ssh_config
+
 Include ~/.orbstack/ssh/config
 
 
@@ -7,13 +9,17 @@ Include /Users/powellc/.colima/ssh_config
 #CanonicalDomains elationemr.com unbl.ink onec.me
 #
 Host *
-    IdentitiesOnly yes
+  IdentityAgent $SSH_AUTH_SOCK
+  PreferredAuthentications publickey
+  IdentitiesOnly no
 
 Host github.com
+    User git
+    IdentityAgent $SSH_AUTH_SOCK
     ServerAliveInterval 300
     ServerAliveCountMax 2
-    AddKeysToAgent yes
-    IdentityFile ~/.ssh/2025_git
+    IdentitiesOnly yes
+    IdentityFile none
 
 # Home Gitea account:
 Host code.unbl.ink git.service 192.168.40.83 gogs*
@@ -21,7 +27,6 @@ Host code.unbl.ink git.service 192.168.40.83 gogs*
   IdentityFile ~/.ssh/2024_git
   PreferredAuthentications publickey
   PasswordAuthentication no
-  IdentitiesOnly yes
   Port 222
 
 # Mailinabox uses root by default