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
1 |
ssh -o "StrictHostKeyChecking=no" root@hostname |