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

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])?

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地址,提示如下:

The authenticity of host ' ' can't be established.
ECDSA key fingerprint is SHA256:.
Are you sure you want to continue connecting (yes/no/[fingerprint])?

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

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

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

StrictHostKeyChecking no
UserKnownHostsFile /dev/null

新手站长网是不建议这么做的,毕竟不安全。而且一边输入yes回车即可解决问题,没必要这么麻烦。

你可能感兴趣的:(解决The authenticity of host can’t be established ECDSA key fingerprint is SHA256)