Skip to content
nusenu edited this page Jan 4, 2017 · 1 revision

Error: Key MISMATCH detected: Remote RSA key does not match local key.

When setting everything up we generate keys on your ansible control machine and copy them to the target server. In rare cases the key is already there and does not match the one we generated locally. We do not override the remote key automatically but we are also not overriding the local key with the remote key automatically. You have to decide.

Solving the problem

If you want to use the remote key (found on the relay):

  1. Change into the folder shown in the error message.
  2. mv secret_id_key.untrustedremotekey secret_id_key
  3. rerun your ansible playbook

If you want to use the local key (found on the ansible control machine)

  1. Move the keys on your relay to another directory
  2. rerun your ansible playbook