最佳答案
当我 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.
有没有一种方法可以自动说“是”或忽略这一点?