修改下列参数StrictHostKeyChecking no可以避免出现这个提示Are you sure you want to continue connecting (yes/no/[fingerprint])?

[oracle@stbm000019-vm13 ~]$ ssh stbm000019-vm16
The authenticity of host 'stbm000019-vm16 (100.70.4.132)' can't be established.
ECDSA key fingerprint is SHA256:Rv8WM2UoeoVGOG93tq2Ecpswv23IqyLGvyZVkjh2iyg.
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added 'stbm000019-vm16,100.70.4.132' (ECDSA) to the list of known hosts.

[root@stbm000019-vm13 ~]# cat /etc/ssh/ssh_config | grep -i stricthostkeychecking
#   StrictHostKeyChecking ask
StrictHostKeyChecking no


Logo

华为开发者空间,是为全球开发者打造的专属开发空间,汇聚了华为优质开发资源及工具,致力于让每一位开发者拥有一台云主机,基于华为根生态开发、创新。

更多推荐