Home  >  Article  >  System Tutorial  >  Solution to the problem that SSH cannot connect to Ubuntu Linux in the virtual machine

Solution to the problem that SSH cannot connect to Ubuntu Linux in the virtual machine

WBOY
WBOYforward
2024-01-07 14:45:38987browse

Today, I used SSH to connect to the Linux system in the virtual machine under Windows XP, but it never connected. People are depressed. Later I searched a lot online. well. Installed ftp, SSH, smb. None of them were successful. Later it finally succeeded.

First of all:

The system is Ubuntu, the virtual machine VMware simplified Chinese version, 20M. It runs extremely fast in a virtual machine.

1, first change the vmare connection to a bridge connection. Select Bridge in Network Adapters in the virtual machine settings.

2, turn off the hardware verification of the network card in the local connection. The hardware checksum value in the properties is off.

3. In the Linux terminal: ifconfig checks the virtual machine IP. Then whether the virtual IP can be pinged under xp.

Similarly, you also need to ping the local IP (IP under XP) in Linux.

After ping is successful, telnet vmIP port (SSH default is 22) under xp to see if it can be connected.

if

The above is the detailed content of Solution to the problem that SSH cannot connect to Ubuntu Linux in the virtual machine. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:jb51.net. If there is any infringement, please contact admin@php.cn delete