为什么或为什么我在服务器 A 尝试连接到服务器 B 时收到此错误???
ssh root@zk.111.sf.development.cloudera.fu.com
Warning: the ECDSA host key for 'zk.111.sf.development.cloudera.fu.com' differs from the key for the IP address '107.170.xxx.xxx'
Offending key for IP in /root/.ssh/known_hosts:4
Matching host key in /root/.ssh/known_hosts:5
Are you sure you want to continue connecting (yes/no)? no
Host key verification failed.
enter code here
Run Code Online (Sandbox Code Playgroud)
在服务器 AI 上执行此操作
eval `ssh-agent -s`
ssh-keyscan 107.170.xxx.xxx | tee -a /root/.ssh/known_hosts
Run Code Online (Sandbox Code Playgroud)
然后我尝试 ssh。哇..两个服务器事件都有相同的 pub 和 private 密钥。我正在尝试在服务器之间设置无密码身份验证。
我在东京、伦敦和弗里蒙特的 linode 服务器上有三个 zookeeper 节点。都是八卦。
我在东京有一个监控服务器。
我没有在所有 zookeeper 服务器上激活 zookeeper 防火墙。
从我的本地开发笔记本电脑、aws 等机器,我可以 telnet 到任何 Zookeeper 节点。
从 linode,监控服务器,我无法使用任何客户端进行连接。
我确实使用 UFW 来阻止监控服务器上的传入端口,但我不明白这是如何导致 Zookeeper 端口出现问题的。我什至禁用以及利用。
从监控服务器我什么也没得到。
telnet xxx.xxx.xxx.xxx 2181
Trying xxx.xxx.xxx.xxx...
Connected to xxx.xxx.xxx.xxx.
Escape character is '^]'.
Connection closed by foreign host.
Run Code Online (Sandbox Code Playgroud)
从两端使用 mtr --report 显示没有问题。
所以,我无法从服务器连接到 zookeeper。我如何知道发生了什么?