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

使用ssh -o 的参数进行设置

ssh -o StrictHostKeyChecking=no root@xxxxxxx

或者修改配置文件:

/etc/ssh/ssh_config

将其中的# StrictHostKeyChecking ask 改成 StrictHostKeyChecking no

2、出现登录慢的解决方法:

先用ssh root@xxxxx -vvv 查看出现在那一步比较慢

例如:出现 debug1: Unspecified GSS failure. Minor code may provide more information No credentials cache found

均可以通过 ssh -o 的参数进行设置

出现如上问题可以使用: -o GSSAPIAuthentication=no

或者: ssh -o GSSAPIAuthentication=no root@xxxxx