首次進行ssh鏈接時,出現以下提示:
The authenticity of host '192.168.100.1(192.168.100.1 )' can't be established. RSA key fingerprint is a0:00:d3:33:54:96:40:03:ff:ad:15:a9:59:22:f4:2a.
Are you sure you want to continue connecting (yes/no)?
批量連接時跳出這個提示很麻煩,可以通過以下方法禁止提示,直接允許。
創建文件 /root/.ssh/config,添加一行:
StrictHostKeyChecking no
保存退出,再使用ssh連接其他機器就不再跳了。