ssh 登录出现Are you sure you want to continue connecting (yes/no)?解决方法

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 
View Code
原文地址:https://www.cnblogs.com/IIXS/p/15203985.html