在百度上找了很多关于这个错误的解决方法,比如说:服务未开启,防火墙问题啊等..具体可以参见:

https://blog.csdn.net/u013067756/article/details/76086835/

然而,我还是没有解决我的问题,最后才找到解决方法:

首先,检查虚拟机的服务是否开启,

然后,打开ubuntu点击左上角的编辑按钮 ,打开虚拟网络编辑器

通过xshell连接ubuntu报错:Could not connect to '192.168.28.128' (port 22): Connection failed.

然后选择VMnet8 NAT模式 点击还原默认设置

通过xshell连接ubuntu报错:Could not connect to '192.168.28.128' (port 22): Connection failed.

等待完成之后,重启虚拟机,然后在此连接就可以了。

相关文章:

  • 2021-07-27
  • 2021-04-04
  • 2021-06-29
  • 2021-06-17
  • 2021-07-26
  • 2021-05-04
  • 2021-09-30
  • 2022-01-10
猜你喜欢
  • 2022-12-23
  • 2021-03-31
  • 2021-04-14
  • 2021-11-14
  • 2021-07-31
  • 2022-12-23
  • 2021-07-17
相关资源
相似解决方案