连接虚拟机报错 Could not connect to ‘192.168.xxx.xxx‘ (port 22): Connection failed.

使用xshell连接虚拟机报错

Connecting to 192.168.204.129:22…
Could not connect to ‘192.168.204.129’ (port 22): Connection failed.

Type `help’ to learn how to use Xshell prompt.

按网上的方法

  • 是否能ping通内外网
ping www.baidu.com
  • 防火墙是否关闭
firewall-cmd --state
  • 重启ssh服务。
systemctl restart sshd.service

问题解决

我是修改网段之后出现的问题,没有勾选网络适配,导致没网。
在这里插入图片描述

结束!!!
hy:30


		人要接受自己的有限性,人的逻辑、理性、阅读都是有限的,整个人就是在偏见之中。人这一生就是在走出偏见。

猜你喜欢

转载自blog.csdn.net/weixin_49107940/article/details/132721453