遠端連線出現以下錯誤訊息:
serverd.lab.example.com | FAILED! => {
"msg": "Using a SSH password instead of a key is not possible because Host Key checking is enabled and sshpass does not support this. Please add this host's fingerprint to your known_hosts file to manage this host."
}
原因:對方主機無法辨別你是誰,你必須要把你的 SSH 憑證傳過去驗證。
解法 :
1 . 先製作您主機憑證,在哪您的憑證傳給對方
[adb@server]# ssh-keygen
[adb@server]# ssh-copy-id serverName
歡迎轉載,請註明出處。