当前位置:   article > 正文

ssh-copy-id error ssh connect to host port 22 connection timed out_/usr/bin/ssh-copy-id: error: ssh: connect to host

/usr/bin/ssh-copy-id: error: ssh: connect to host servera port 22: no route

ssh配置出现

ssh-copy-id error ssh connect to host port 22 connection timed out

向ping ip 看一下或者用 telnet +ip+端口看一下

例如telnet 127.0.0.1 22

再cat /etc/hosts 看一下hosts文件配置对不对

配置完之后一定要 systemctl restart network 重启网络

再ping一下

出现下面结果才行

  1. [hadoop@localhost root]$ ping 127.0.0.1
  2. PING 127.0.0.1 (127.0.0.1) 56(84) bytes of data.
  3. 64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=0.031 ms
  4. 64 bytes from 127.0.0.1: icmp_seq=2 ttl=64 time=0.042 ms
  5. 64 bytes from 127.0.0.1: icmp_seq=3 ttl=64 time=0.047 ms

然后再ssh之前的操作即可

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

闽ICP备14008679号