ssh配置出现 ssh-copy-id error ssh connect to host port 22 connection timed out 向ping ip 看一下或者用 telnet +ip+端口看一下 例如telnet 12
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一下
出现下面结果才行
[hadoop@localhost root]$ ping 127.0.0.1PING 127.0.0.1 (127.0.0.1) 56(84) bytes of data.64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=0.031 ms64 bytes from 127.0.0.1: icmp_seq=2 ttl=64 time=0.042 ms64 bytes from 127.0.0.1: icmp_seq=3 ttl=64 time=0.047 ms
然后再ssh之前的操作即可
来源地址:https://blog.csdn.net/kkk109A/article/details/128021489
--结束END--
本文标题: ssh-copy-id error ssh connect to host port 22 connection timed out
本文链接: https://www.lsjlt.com/news/441229.html(转载时请注明来源链接)
有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341
下载Word文档到电脑,方便收藏和打印~
2024-05-07
2024-04-30
2024-04-30
2024-04-30
2024-04-29
2024-04-29
2024-04-29
2024-04-18
2024-04-17
2024-04-11
回答
回答
回答
回答
回答
回答
回答
回答
回答
回答
0