mardi 23 mai 2017

ssh & scripts automatisés, The authenticity of host can't be established

Lors d'appels de scripts automatisés pour "calculer" ce qui est à mettre en préproduction, j'ai souvent des "The authenticity of host can't be established".
Peut-être parce que la machine est puppétisée...

Soit il faut répondre manuellement, soit il faut éviter d'avoir le prompt...

Pour éviter d'avoir à répondre, on peut ajouter l'option "-o StrictHostKeyChecking=no" à ses commandes SSH.



Ce n'est pas beau, certes...

Source : stackoverflow