ssh login appears Are you sure you want to continue connecting (yes/no)?
1. You can use the parameters of ssh -o to set.
For example: ssh -o StrictHostKeyChecking=no root@192.168.111.22
2. Modify /etc/ssh/ssh_config and
change the # StrictHostKeyChecking ask to StrictHostKeyChecking no
The solution for slow login:
First use ssh root@192.168.111.22 -vvv to see which step appears to be slow.
For example: debug1: Unspecified GSS failure. Minor code may provide more information
No credentials cache found
The above problems can be set through the ssh -o parameter. Use: -o GSSAPIAuthentication=no
For example: ssh -o GSSAPIAuthentication=no root@192.168.111.22