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

/var/lib/salt/.ssh/known_hosts does not exists #9594

Open
Autoflow opened this issue Jan 2, 2025 · 2 comments
Open

/var/lib/salt/.ssh/known_hosts does not exists #9594

Autoflow opened this issue Jan 2, 2025 · 2 comments
Labels
question Further information is requested

Comments

@Autoflow
Copy link

Autoflow commented Jan 2, 2025

We are using Uyuni Podman 2024.12 and just changed the ssh key of a registered Debian System.
We removed the system from the systems list (Uyuni UI), stopped venv salt minion on the client, removed /etc/venv-salt-minion/pki/minion/minion.pem and /etc/venv-salt-minion/pki/minion/minion.pub and restarted the salt minion.

When accepting the salt key, we get following notice: Onboarding failed,Error registering minion id

#tail -f /var/log/salt/master says:
2025-01-02 12:05:56,833 [salt.channel.server:379 ][ERROR ][5982] Authentication attempt from HOST failed, the public keys did not match. This may be an attempt to compromise the Salt cluster.

Can someone please help where to remove the old ssh key please?

@Autoflow Autoflow added the question Further information is requested label Jan 2, 2025
@mcalmer
Copy link
Contributor

mcalmer commented Jan 3, 2025

The HOME for user salt is /var/lib/salt/ . You can remove the key from the known_host file in /var/lib/salt/.ssh/known_hosts.

@Autoflow
Copy link
Author

Autoflow commented Jan 3, 2025

Thanks very much so far.
As suggested i did this:

#mgrctl term
#cd /var/lib/salt/.ssh/

There is no known_hosts file, the directory .ssh is empty.

Can someone please help and tell me the correct location?

@Autoflow Autoflow changed the title Changed client SSH key results in error during onboarding /var/lib/salt/.ssh/known_hosts does not exists Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants