如何避免ssh过程中出现提示Are you sure you want to continue connecting (yes/no/[fingerprint])?

朱小落

关注

阅读 85

2022-05-02

修改下列参数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


精彩评论(0)

0 0 举报