Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

respect IdentityFile ssh config when using ssh agent socket #3356

Open
tompson opened this issue Aug 20, 2024 · 1 comment
Open

respect IdentityFile ssh config when using ssh agent socket #3356

tompson opened this issue Aug 20, 2024 · 1 comment
Labels
kind/feature Categorizes issue or PR as related to a new feature. sig/cluster-management Denotes a PR or issue as being assigned to SIG Cluster Management.

Comments

@tompson
Copy link

tompson commented Aug 20, 2024

What happened?

We are using 1Password SSH Agent for managing our ssh keys

the SSH_AUTH_SOCK is set to the 1Password agent

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

Host 23.24.55.66
    IdentityFile ~/.ssh/public-key-for-kubeone.pub

Expected behavior

kubeone should respect the IdentityFile ssh config for the hosts

How 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?

$ kubeone version
{
  "kubeone": {
    "major": "1",
    "minor": "8",
    "gitVersion": "1.8.0",
    "gitCommit": "c280d14d95ac92a27576851cc058fc84562fcc55",
    "gitTreeState": "",
    "buildDate": "2024-05-14T15:41:44Z",
    "goVersion": "go1.22.3",
    "compiler": "gc",
    "platform": "darwin/amd64"
  },
  "machine_controller": {
    "major": "1",
    "minor": "59",
    "gitVersion": "v1.59.1",
    "gitCommit": "",
    "gitTreeState": "",
    "buildDate": "",
    "goVersion": "",
    "compiler": "",
    "platform": "linux/amd64"
  }
}

What cloud provider are you running on?

Hetzner Cloud

What operating system are you running in your cluster?

Ubuntu 22.04

@tompson tompson added kind/bug Categorizes issue or PR as related to a bug. sig/cluster-management Denotes a PR or issue as being assigned to SIG Cluster Management. labels Aug 20, 2024
@kron4eg
Copy link
Member

kron4eg commented Aug 20, 2024

Unfortunately we don't have any support for ~/.ssh/config.

@kron4eg kron4eg added kind/feature Categorizes issue or PR as related to a new feature. and removed kind/bug Categorizes issue or PR as related to a bug. labels Sep 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature Categorizes issue or PR as related to a new feature. sig/cluster-management Denotes a PR or issue as being assigned to SIG Cluster Management.
Projects
None yet
Development

No branches or pull requests

2 participants