uyuni-project / uyuni-tools

Tools to work with containerized Uyuni server
Apache License 2.0
16 stars 19 forks source link

Command to cleanup SSH known hosts #501

Open juliogonzalez opened 1 week ago

juliogonzalez commented 1 week ago

Today, running tests, I ended up with a VM using the same IP from an old VM, but of course a different SSH key.

That caused the following while onboarding:

imagen

Maybe this should be an mgradm command so the user doesn't need to manually run things on the container.

Something like:

mgradm ssh remove-know-host <IP/HOSTNAME>

If we do this change, then we should try to change that message to tell the user to use the command... not sure how complicated that will be, because that message comes directly from openssh.

cbosdo commented 1 week ago

Since this would touch files in the container, mgradm seems more suited than mgrctl.

juliogonzalez commented 1 week ago

Fixed on the description, I initially wrote mgrctl on one sentence, mgradm, by mistake :-)