• SSH登录问题 .ssh/known_hosts和 ECDSA key


    问题描述:

    fakerdeMacBook-Pro:~ faker$ ssh root@123.***.***.34
    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
    @    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:xv9d+LHzS3VcVK4PVwMcmzoGRQ5ZPqvDGmdJ0CjCB9o.
    Please contact your system administrator.
    Add correct host key in /Users/faker/.ssh/known_hosts to get rid of this message.
    Offending ECDSA key in /Users/faker/.ssh/known_hosts:2
    ECDSA host key for 123.***.***.34 has changed and you have requested strict checking.
    Host key verification failed.

    解决方法:

    fakerdeMacBook-Pro:~ faker$ ssh-keygen -R 123.***.***.34
    # Host 123.***.***.34 found: line 2
    /Users/faker/.ssh/known_hosts updated.
    Original contents retained as /Users/faker/.ssh/known_hosts.old

    再次登录成功

    fakerdeMacBook-Pro:~ faker$ ssh root@123.***.***.34
    The authenticity of host '123.***.***.34 (123.***.***.34)' can't be established.
    ECDSA key fingerprint is SHA256:xv9d+LHzS3VcVK4PVwMcmzoGRQ5ZPqvDGmdJ0CjCB9o.
    Are you sure you want to continue connecting (yes/no)? yes
    Warning: Permanently added '123.***.***.34' (ECDSA) to the list of known hosts.
    root@123.***.***.34's password: 
    Last login: Fri Jun  1 10:12:55 2018 from 119.29.96.147
  • 相关阅读:
    笨笨走了
    WSE 3.0 文档翻译:WSE架构
    系列文章索引
    WSE 3.0 文档翻译:WSE的新功能
    人分四品
    手把手教你装饰vs2005项目上如何添加右键菜单
    递归算法学习系列之三(快速排序)
    ip地址与数字相互转换的sql函数
    递归算法学习系列之寻找第K大
    WSE 3.0 文档翻译:什么时候使用WSE 3.0
  • 原文地址:https://www.cnblogs.com/fhwup/p/9120435.html
Copyright © 2020-2023  润新知