ssh密匙被阻挡

    xiaoxiao2022-07-03  125

    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

    @    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @

    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

    IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!

    Someone could be eavesdropping on you right now (man-in-the-middle attack)!

    It is also possible that a host key has just been changed.

    The fingerprint for the ECDSA key sent by the remote host is

    SHA256:A4hKYJzt+FJSmDjlOMpzRfrCLnrNXYVRgrv78c78g2I.

    Please contact your system administrator.

    Add correct host key in /var/root/.ssh/known_hosts to get rid of this message.

    Offending ECDSA key in /var/root/.ssh/known_hosts:4

    ECDSA host key for 192.168.14.45 has changed and you have requested strict checking.

    Host key verification failed.

    当client通过ssh连接server时,会把server的信息保存在自己家目录下的.ssh/known_hosts文件里。如果server被重装或者被替换(IP没变),server的信息肯定就改变了,与之前known_hosts里的信息不一致,从而导致密钥认证失败。

    通过sudo su 进入到管理员用户

    在管理员用户下vim ~/.ssh/known_hosts 删除对应的ip下的用户密匙

    最新回复(0)