ssh无法登陆报错

解决

ssh-keygen -f "/root/.ssh/known_hosts" -R 192.168.197.59

报错

root@jenkins-ansible:~# ssh ubuntu@192.168.197.59
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    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:dmoPeKhRUOMS0rYs8ckAeCaYReOz2cZNkwaO0B5/oDg.
Please contact your system administrator.
Add correct host key in /root/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in /root/.ssh/known_hosts:86
  remove with:
  ssh-keygen -f "/root/.ssh/known_hosts" -R 192.168.197.59
ECDSA host key for 192.168.197.59 has changed and you have requested strict checking.
Host key verification failed.
root@jenkins-ansible:~# ssh-keygen -f "/root/.ssh/known_hosts" -R 192.168.197.59
# Host 192.168.197.59 found: line 86
/root/.ssh/known_hosts updated.
Original contents retained as /root/.ssh/known_hosts.old
root@jenkins-ansible:~# ssh ubuntu@192.168.197.59
The authenticity of host '192.168.197.59 (192.168.197.59)' can't be established.
ECDSA key fingerprint is SHA256:dmoPeKhRUOMS0rYs8ckAeCaYReOz2cZNkwaO0B5/oDg.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.197.59' (ECDSA) to the list of known hosts.
Welcome to Ubuntu 16.04.3 LTS (GNU/Linux 4.4.0-96-generic x86_64)

 * Documentation:  https://help.ubuntu.com
 * Management:     https://landscape.canonical.com
 * Support:        https://ubuntu.com/advantage

  Get cloud support with Ubuntu Advantage Cloud Guest:
    http://www.ubuntu.com/business/services/cloud

120 packages can be updated.
1 update is a security update.


*** System restart required ***
Last login: Fri Oct 13 09:23:26 2017 from 192.168.199.1
ubuntu@provides-test-13:~$
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

云原生解决方案

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值