赞
踩
[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 www.baidu.com
ping+自己ip
如果网络可以ping通没有问题,再进行下一步:
systemctl stop firewalld.service #关闭防火墙
systemctl disable firewalld.service #禁止开机自启
service network restart
/usr/sbin/sshd
vim /etc/hosts
至此,检查完这些,问题应该得以解决了,很高心能帮到你
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。