connect to host slavenode1 port 22: No route to host
程序员文章站
2024-03-14 10:48:52
...
报错信息:
[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
分析解决:
- 检查网络状态,尝试ping百度和自己
ping www.baidu.com
ping+自己ip
如果网络可以ping通没有问题,再进行下一步:
- 关闭防火墙
systemctl stop firewalld.service #关闭防火墙
systemctl disable firewalld.service #禁止开机自启
- 重启网卡
service network restart
- 启动sshd服务
/usr/sbin/sshd
- 仔细检查 /etc/hosts文件
vim /etc/hosts
至此,检查完这些,问题应该得以解决了,很高心能帮到你
下一篇: delphi DES加密算法
推荐阅读
-
ssh:connect to host localhost port 22: Connection refuse解决
-
connect to host slavenode1 port 22: No route to host
-
master: ssh: connect to host master port 22: Connection refused
-
ssh: connect to host ip port 22: Network is unreachable
-
ssh: connect to host 10.224.120.107 port 22: No route to host
-
ubuntu: ssh: connect to host ubuntu port 22: No route to host
-
ssh: connect to host github.com port 22: Connection timed out
-
ssh: connect to host gitlab.com port 22: Connection timed out
-
Ubuntu SSH - ssh: connect to host ****** port 22: Connection refused
-
ssh: connect to host github.com port 22: Connection timed out的解决方法