Solving the problem of connecting Linux virtual machine to host and Xshell

Connection between Linux virtual machine and host and Xshell

The premise for this problem is that the host and virtual machine can ping each other. However, the remote tool cannot connect to the virtual machine and the virtual machine cannot access the Internet.

img

  • Xshell cannot connect to the virtual machine

    In this case, consider that the SSH login configuration is not configured properly, for example, the SSH Server is not installed.

    For this question, please refer to this article " CentOS7 Configuring SSH Remote Login "

If the above solutions fail, consider turning off the firewall and restarting the SSH service. If that doesn't work, please refer to the following article " Could not connect to '192.168.80.145' (port 22): "

Both of the above articles can solve the connection problem between the virtual machine and the host.

Guess you like

Origin blog.csdn.net/weixin_43891901/article/details/131887968
Recommended