ssh报的一个错

问题描述:之前用ssh都没问题,今天登陆的时候,报了一个错.
报错原因现在分析应该是因为我中午把我自己的服务器的系统换了.而本地证书有缓存.所以ssh连接失败.
以下是解决的步骤.


qupengweideAir:~ qupengwei$ sudo ssh 123.123.123.123
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    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 RSA key sent by the remote host is
SHA256:moWTczwHrxEsXzISX4JP65KPBJHp2AyM3tVlI7wlrOw.
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:2
RSA host key for 123.123.123.123 has changed and you have requested strict checking.
Host key verification failed.

qupengweideAir:~ qupengwei$ sudo rm /var/root/.ssh/known_hosts

qupengweideAir:~ qupengwei$ sudo ssh 123.123.123.123

The authenticity of host '123.123.123.123(123.123.123.123)' can't be established.
RSA key fingerprint is SHA256:moWTczwHrxEsXzISX4JP65KPBJHp2AyM3tVlI7wlrOw.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '123.123.123.123' (RSA) to the list of known hosts.
root@123.123.123.123's password: 
Last login: Fri Sep 22 16:05:19 2017

Welcome to Alibaba Cloud Elastic Compute Service !

[root@iZ2zegpk4babzovldarxqnZ ~]# 

登陆成功!

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值