From 5c748e0995f17b96317518ee08bd9150881216b3 Mon Sep 17 00:00:00 2001 From: Sean Smith Date: Thu, 4 Feb 2021 18:51:30 -0600 Subject: [PATCH] Set IdentitiesOnly option when configuring ssh This setting will prevent ssh from using identities found in ssh-agent. We're already specifying the identity file, so there's no need to rely on ssh-agent for this. This will prevent 'too many authentication failures' errors when connecting to an environment while having a lot of identities loaded in the agent. --- internal/cmd/configssh.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/cmd/configssh.go b/internal/cmd/configssh.go index 57b88651..26cb0afe 100644 --- a/internal/cmd/configssh.go +++ b/internal/cmd/configssh.go @@ -203,6 +203,7 @@ func makeSSHConfig(host, userName, envName, privateKeyFilepath string) string { User %s-%s StrictHostKeyChecking no ConnectTimeout=0 + IdentitiesOnly yes IdentityFile="%s" ServerAliveInterval 60 ServerAliveCountMax 3