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

Failed to connect to the host via ssh #164

Open
VLadSaln opened this issue Jun 18, 2024 · 6 comments
Open

Failed to connect to the host via ssh #164

VLadSaln opened this issue Jun 18, 2024 · 6 comments

Comments

@VLadSaln
Copy link

fatal: [seed]: UNREACHABLE! => {"changed": false, "msg": "Failed to connect to the host via ssh: [email protected]: Permission denied (publickey,gssapi-keyex,gssapi-with-mic).", "unreachable": true}
Error after kayobe seed host configure

@kees-closed
Copy link

Same here, no fix so far?

@Alex-Welsh
Copy link
Contributor

Hi there, can you try setting the user to rocky, cloud-user, or stack instead? Unfortunately the README is a fair way out of date and support for CentOS 8 was dropped a while ago. The drop-in replacement is Rocky 9, and Ubuntu 22.04 also work with a few tweaks.

@kees-closed
Copy link

Hi there, can you try setting the user to rocky, cloud-user, or stack instead? Unfortunately the README is a fair way out of date and support for CentOS 8 was dropped a while ago. The drop-in replacement is Rocky 9, and Ubuntu 22.04 also work with a few tweaks.

I'm trying to find the location of this, do you have the path of where this user variable should be changed in the yaml?

@Alex-Welsh
Copy link
Contributor

You can change this line here: https://github.com/stackhpc/a-universe-from-nothing/blob/stable/2023.1/etc/kayobe/seed.yml#L7C2-L7C21
Which will typically be at ~/kayobe/config/src/kayobe-config/etc/kayobe/seed.yml. I think it will need to be rocky.

Changing that line will get you further, however I suspect that you'll hit more issues later. I'm assuming the host machine you are using is CentOS 8? The easiest solution would be to rebuild using Rocky 9.

Setting os_distribution: "rocky" and os_release: "9" under globals.yml may be enough to make it work with CentOS.

@kees-closed
Copy link

kees-closed commented Jul 12, 2024

My host machine is Debian 12. What I did was changing this line to the user 'admin'. Then it continued. But I suppose that's an ugly hack for now? Or maybe a wrong user? Or even wrong host distribution?

@Alex-Welsh
Copy link
Contributor

Alex-Welsh commented Jul 12, 2024

Debian 12 is very much uncharted territory. You can try setting the *_bootstrap_user variables in seed.yml, compute.yml and controllers.yml to admin if that seems to work for you.

The two host distributions supported by kayobe are Ubuntu 22.04 and Rocky 9. docs link
If possible I'd recommend switching to one of those two and use a big VM or similar

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants