SSH asking if you trust the host your connecting to.

When executing a SSH connection on the network to perform a task on your system you will be requested to answer “YES” to sharing a new certificate with that host, this can be painful when doing it for the first time. Especially if your connecting to numerous system  with a for statement. So you can ignore the error by setting StrictHostKeyChecking to “no”, ie

 

 

Leave a Reply

Your email address will not be published. Required fields are marked *