for host in
时间: 2023-08-26 22:10:39 浏览: 184
host
引用\[1\]:主要原因是因为之前本地访问过172.18.2.248的服务器,会把服务器(172.18.2.248登录标识证书记录下来,下次登录时会去比对之前的记录,由于修改了ip导致不能继续登录。 解决操作: 在172.18.2.248执行 mv /root/.ssh/known_hosts /root/.ssh/known_hosts.bak 。 引用\[2\]:随后在其他节点切换到172.18.2.248的时候报: Warning: the ECDSA host key for 'node03' differs from the key for the IP address '172.18.2.248' Offending key for IP in /root/.ssh/known_hosts:1 Matching host key in /root/.ssh/known_hosts:16 Last login: Tue Oct 29 20:07:12 2019 from node02 。 引用\[3\]:检测指定范围主机是否通信,并将通信的主机ip输出到文件host_ip中 #!/bin/bash for i in 192.168.88.{87..133} do ping -c 2 -i 0.5 -w 1 $i &> /dev/null if \[ $? -eq 0 \] then echo "$i is online" >> host_ip else echo "$i is offline" fi done 。 问题:for host in
回答: 根据提供的引用内容,无法确定问题的具体上下文和意图。请提供更多信息,以便我能够更好地回答您的问题。
#### 引用[.reference_title]
- *1* *2* [ssh登录错误ECDSA host key for ip has changed和Offending key for IP in /root/.ssh/known_hosts:1](https://blog.csdn.net/weixin_43865381/article/details/102816263)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item]
- *3* [shell小练](https://blog.csdn.net/jcrhl321/article/details/124089340)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文