zoukankan      html  css  js  c++  java
  • VPS 修改密码后 Mac 终端连接不上的解决方案

    本文地址:https://www.cnblogs.com/veinyin/p/11543225.html

    通过搬瓦(这居然是个敏感词)工买的 VPS 由于密码只出现一次  当时没记住  再想连接只能更新密码了

    但是却发现连不上了 提示信息如下

     1 ssh -p port root@ip
     2 @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
     3 @    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @
     4 @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
     5 IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
     6 Someone could be eavesdropping on you right now (man-in-the-middle attack)!
     7 It is also possible that a host key has just been changed.
     8 The fingerprint for the RSA key sent by the remote host is
     9 SHA256:+fOgw8j3Q07aT1XmTd1+EFe4fp8RSoEM5lOk/ZVtYwY.
    10 Please contact your system administrator.
    11 Add correct host key in /Users/veinyin/.ssh/known_hosts to get rid of this message.
    12 Offending RSA key in /Users/veinyin/.ssh/known_hosts:11
    13 RSA host key for [ip]:port has changed and you have requested strict checking.
    14 Host key verification failed.

    在 12 行可以看到 是我们的验证信息不对  还是之前密码生成的内容  在控制台中输入

    vim .ssh/known_hosts

    找到对应 ip 的那一行  删除后按 ·ESC·  输入 :wq 保存修改

    再次连接就可以了 

    END~~~≥ω≤

  • 相关阅读:
    JavaScript autoComplete 1.2
    Linux下安装配置git
    《SQL Server 2008从入门到精通》20180627
    《SQL必知必会》知识点汇总
    关于js的setTimeout和setInterval
    关于js的闭包
    web图片类型
    关于绑定事件
    js原型与继承
    关于js的mouseout
  • 原文地址:https://www.cnblogs.com/veinyin/p/11543225.html
Copyright © 2011-2022 走看看