ssh远程登陆Someone could be eavesdropping on you right now (man-in-the-middle attack)!
如图所示,使用ssh远程登陆的时候会出现如图所示的情况,这种情况的解决办法:
- ssh-keygen -R +需要登录的IP地址
如果出现需要输入yes/no的时候输入yes,我这边在测试的时候没有出现这个环节,所以没有截图
然后再重新使用ssh加用户名及IP地址登录
[root@Zabbix server ~]# ssh-keygen -R 172.16.1.174
Host 172.16.1.174 not found in /root/.ssh/known_hosts
[root@Zabbix server ~]# ssh root@172.16.1.174
The authenticity of host '172.16.1.174 (172.16.1.174)' can't be established.
ECDSA key fingerprint is SHA256:sT1C++/sJMhSAy4wON8sYHKsq32HTg65HF6IVCGXHKY.
ECDSA key fingerprint is MD5:32:97:a2:d5:2d:28:41:f4:fe:2d:a0:03:65:36:f5:b6.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '172.16.1.174' (ECDSA) to the list of known hosts.
root@172.16.1.174's password:
[root@Zabbix server ~]#