当我SSH到计算机时,有时我会收到此错误警告,并提示您说“是”或“否”。从自动ssh到其他计算机的脚本运行时,这会引起一些麻烦。
警告信息:
The authenticity of host '<host>' can't be established.
ECDSA key fingerprint is SHA256:TER0dEslggzS/BROmiE/s70WqcYy6bk52fs+MLTIptM.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'pc' (ECDSA) to the list of known hosts.
有没有一种方法可以自动说“是”或忽略它?