botang 发表于 2019-6-18 21:24:06

课程第29次

192.168.0.4 ssh连接 192.168.0.5的时候, 前者是Alice,后者是Bob
(谁输入密码谁是Alice, 谁有公钥和私钥对谁是Bob)




如果BOB的公钥不对的话,Alice出现:

# ssh 192.168.0.5
ssh_exchange_identification: read: Connection reset by peer
# ssh 192.168.0.5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    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:mD3xiUZRelmK4f4aQPpn/CyWd0umnJ5UAYDwQ6tZd10.
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:4
ECDSA host key for 192.168.0.5 has changed and you have requested strict checking.
Host key verification failed.



页: [1]
查看完整版本: 课程第29次