ssh 登錄出現Are you sure you want to continue connecting (yes/no)?解決方法

1 1,可以使用ssh -o 的參數進行設置 2 ssh -o StrictHostKeyChecking=no root@192.168.111.22 3 2,修改/etc/ssh/ssh_config 4 將其中的# StrictHostKeyChecking ask 改成 StrictHostKeyChecking no 5 出現登錄慢的解決方法: 6 先用ssh root@192.168.111.22 -vvv 查看出現在那一步比較慢 7 例如:出現 debug1: Unspecified GSS failure. Minor code may provide more information 8 No credentials cache found 9 均可以通過 ssh -o 的參數進行設置 10 出現如上問題可以使用: -o GSSAPIAuthentication=no 11 ssh -o GSSAPIAuthentication=no root@192.168.111.22