The authenticity of host can’t be established ECDSA key fingerprint is SHA256

2021年7月28日20:48:01LinuxThe authenticity of host can’t be established ECDSA key fingerprint is SHA256已关闭评论371 views

SSH登录连接Linux服务器提示The authenticity of host can't be established ECDSA key fingerprint is SHA256: Are you sure you want to continue connecting (yes/no/[fingerprint])? 文章源自新手站长网-https://www.xinshouzhanzhang.com/sshecdsakeyfingerprint.html

The authenticity of host can’t be established ECDSA key fingerprint is SHA256

SSH ECDSA key fingerprint is SHA256

解决SSH The authenticity of host can't be established

SSH命令连接云服务器:ssh root@服务器ip地址,提示如下:文章源自新手站长网-https://www.xinshouzhanzhang.com/sshecdsakeyfingerprint.html

The authenticity of host ' ' can't be established.
ECDSA key fingerprint is SHA256:.
Are you sure you want to continue connecting (yes/no/[fingerprint])? 文章源自新手站长网-https://www.xinshouzhanzhang.com/sshecdsakeyfingerprint.html

SSH连接服务器为什么会出现这个提示?新手站长网猜测可能是一种安全机制,出现这种情况一般有两个原因,一个是第一次登录云服务器,另一个是主机key发生了变化,解决方法很简单,输入yes,然后回车即可。文章源自新手站长网-https://www.xinshouzhanzhang.com/sshecdsakeyfingerprint.html

那么问题来了,如果经常出现这个SSH提示怎么办?可以在SSH的时候加上StrictHostKeyChecking选项,新手站长网举例说明:ssh -o StrictHostKeyChecking=no root@你的本地IP地址文章源自新手站长网-https://www.xinshouzhanzhang.com/sshecdsakeyfingerprint.html

还有一种彻底去掉SSH主机验证的方法,就是修改/etc/ssh/ssh_config配置文件,在ssh_config配置文件中添加:


新手站长网是不建议这么做的,毕竟不安全。而且一边输入yes回车即可解决问题,没必要这么麻烦。文章源自新手站长网-https://www.xinshouzhanzhang.com/sshecdsakeyfingerprint.html