Red Hat IdM

From wiki.vacula.xyz
Revision as of 03:10, 21 August 2025 by Dracula (talk | contribs) (Created page with "== Fix/Remove SSH Host Pubkey from IdM Record == Manifests as the following: [lvacula@example.com@jumpbox ~]$ ssh root@10.0.0.1 @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Fix/Remove SSH Host Pubkey from IdM Record

Manifests as the following:

[lvacula@example.com@jumpbox ~]$ ssh root@10.0.0.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@                                
@    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @                                                                                              @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@                                                                                              IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!                                                                                                    Someone could be eavesdropping on you right now (man-in-the-middle attack)!                                                                              It is also possible that a host key has just been changed.                                                                                               The fingerprint for the ED25519 key sent by the remote host is                                                                                           SHA256:GoCT9/BWiOSs+gRXtwu2ZgaaaswtPc6YT7VmKOE5PL0.                                                                                                      Please contact your system administrator.
Add correct host key in /home/lvacula/.ssh/known_hosts to get rid of this message.
Offending ED25519 key in /var/lib/sss/pubconf/known_hosts:3
Host key for 10.0.0.1 has changed and you have requested strict checking.
Host key verification failed.

Fix by running

ipa host-mod --sshpubkey= host.example.com