Suppose you have computers A and B, and COMPUTER B has A VM installed on it, and COMPUTER C wants to directly SSH access to computer C from COMPUTER A

The method is as follows:











For host A, use the IP address of host B and the previously mapped host port to access host A

The mapped port may be blocked by the firewall of the host. Therefore, check whether the firewall disables the port. If the port is blocked, the host can still access the port, but other hosts cannot access the port using the IP address of the host