Open tompson opened 3 months ago
We are using 1Password SSH Agent for managing our ssh keys
the SSH_AUTH_SOCK is set to the 1Password agent
SSH_AUTH_SOCK
when trying to run kubeone we get the following error:
kubeone apply --manifest kubeone.yaml -t output.json --verbose INFO[11:53:34 CEST] Determine hostname... ERRO[11:53:34 CEST] ssh: dialing connection to: 5.75.143.85:22 ssh: handshake failed: ssh: disconnect, reason 2: Too many authentication failures node=23.24.55.66
this is because there are more than 6 ssh keys in the agent available
it seems that kubeone does not respect the IdentityFile set in ~/.ssh/config like
IdentityFile
Host 23.24.55.66 IdentityFile ~/.ssh/public-key-for-kubeone.pub
kubeone should respect the IdentityFile ssh config for the hosts
add more than 6 ssh keys to the ssh agent and make sure that the one fitting for the host is ordered last
Hetzner Cloud
Ubuntu 22.04
Unfortunately we don't have any support for ~/.ssh/config.
~/.ssh/config
What happened?
We are using 1Password SSH Agent for managing our ssh keys
the
SSH_AUTH_SOCK
is set to the 1Password agentwhen trying to run kubeone we get the following error:
this is because there are more than 6 ssh keys in the agent available
it seems that kubeone does not respect the
IdentityFile
set in ~/.ssh/config likeExpected behavior
kubeone should respect the
IdentityFile
ssh config for the hostsHow to reproduce the issue?
add more than 6 ssh keys to the ssh agent and make sure that the one fitting for the host is ordered last
What KubeOne version are you using?
What cloud provider are you running on?
Hetzner Cloud
What operating system are you running in your cluster?
Ubuntu 22.04