Project

General

Profile

Actions

Bug #21449

closed

Remote Execution engine: Error initializing command: Net::SSH::HostKeyMismatch - fingerprint 20:a9:b7:45:1a:b7:d6:42:1e:03:d1:1f:06:20:4c:e2 does not match for "172.17.0.101"

Added by Adam Ruzicka about 7 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Foreman
Target version:
-

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1505842

Description of problem:
Remote Execution engine remembers ssh fingerprints of clients and when client is reinstalled, it fails with:

Error initializing command: Net::SSH::HostKeyMismatch - fingerprint 20:a9:b7:45:1a:b7:d6:42:1e:03:d1:1f:06:20:4c:e2 does not match for "172.17.0.101"

Version-Release number of selected component (if applicable):
satellite-6.3.0-21.0.beta.el7sat.noarch

How reproducible:
always

Steps to Reproduce:
1. Execute remote command on client
2. Reinstall that client (or somehow force it to change sshd fingerprint)
and register it back with same name and IP
3. Attempt to execute another remote command

Actual results:
Error message mentioned above

Expected results:
I'm not saying this is a wrong behavior. It is up to somebody else, but if it is going to stay this way, that change needs to be documented.

Additional info:
Info from aruzicka:

<aruzicka> jhutar: so, apparently it is a new thing in net-ssh 4.0+ (sat 6.2 had net-ssh 2.4.something). there's an issue about this in its upstream repo, but i don't think they'll fix it anytime soon
<aruzicka> jhutar: so if you could please open a BZ and we'll probably make some fix on our side


Related issues 2 (1 open1 closed)

Related to Foreman Remote Execution - Bug #32606: Reimplement known host key removalClosedAdam RuzickaActions
Is duplicate of Foreman Remote Execution - Bug #18645: Remote command fails due to HostKeyMismatchNew02/23/2017Actions
Actions

Also available in: Atom PDF