当前位置:   article > 正文

connect to host slavenode1 port 22: No route to host_connect to host slave1 port 22: no route to host

connect to host slave1 port 22: no route to host

报错信息:

[root@masternode1 ~]# ssh-copy-id -i /root/.ssh/id_dsa.pub slavenode1
/usr/bin/ssh-copy-id: INFO: Source of key(s) to be installed: "/root/.ssh/id_dsa.pub"
/usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed
/usr/bin/ssh-copy-id: ERROR: ssh: connect to host slavenode1 port 22: No route to host
  • 1
  • 2
  • 3

分析解决:

  1. 检查网络状态,尝试ping百度和自己
 ping www.baidu.com
 ping+自己ip
  • 1

如果网络可以ping通没有问题,再进行下一步:

  1. 关闭防火墙
systemctl stop firewalld.service #关闭防火墙
systemctl disable firewalld.service #禁止开机自启
  • 1
  1. 重启网卡
service network restart
    1. 启动sshd服务
    /usr/sbin/sshd 
      1. 仔细检查 /etc/hosts文件
      vim /etc/hosts

        至此,检查完这些,问题应该得以解决了,很高心能帮到你

        声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/笔触狂放9/article/detail/187735
        推荐阅读
        相关标签
          

        闽ICP备14008679号