MobaXterm connection error Network error: Connection timed out

When I opened MobaXterm to remotely connect to my VMware virtual machine today, the following interface appeared. The details of the problem are as follows:
Network error: Connection timed out
Session stopped
    - Press <return> to exit tab
    - Press R to restart session
    - Press S to save terminal output to file


Solution:

The first:

Go to VMware to close and disable the firewall

1)检测虚拟机ip地址是否正常
2)检测虚拟机防火墙状态是否禁用
	关闭并禁用防火墙
	systemctl stop firewalld
	systemctl disable firewalld
	查看状态
	systemctl status firewalld
3)检测物理机的IP地址
4)对比观察虚拟机ip和物理机ip是否在同一个网段
5)如果物理机上有很多物理网卡,建议把不用的停止,即检查物理机上是否有其他网卡干扰了正常网络。

The actual operation is as follows:

 Then go to MobaXterm to connect successfully

The second type:

Have you changed the port number of ssh

For example, I am building a Gitlab server

To implement CI, you need to use the Gitlab remote warehouse, and build Gitlab through Docker

In Vmware, change the port number of the ssh service to 60022 through the following command

vi /etc/ssh/sshd_config  #编辑sshd_config文件
    PORT 22 -> 60022
systemctl restart sshd  #重启服务

So when MobaXterm connects, the Port here should correspond

Check the sshd port number: systemctl status sshd.service

 The third type:

Open the service, change the VMware service to automatic and restart

 The fourth type:

Open the settings and operate as follows.

 turn off the firewall

 

Guess you like

Origin blog.csdn.net/m0_47010003/article/details/127993451