1. Check the basic environment
When the Ubuntu virtual machine is newly installed , the network connection has been set to NAT mode . This mode can realize the communication between the machine and the virtual machine installed on the machine. In this mode, other people's machines cannot communicate with the virtual machine on the machine. communication. In order to realize that other computers can also communicate with the virtual machine on this machine, the network connection must be set to bridge mode.
2. Start the virtual machine
1. First check the ip of the virtual machine and enter the command in the terminal:
$ ifconfig
If you can't find the ifconfig command, you can install the tool net-tools first, and install the command in the terminal:
$ sudo apt install net-tools
2. Then ping 192.168.71.138 locally to see if it can be pinged. If the result is as follows, the ping is successful, and Xshell and Xftp can be connected.
Method: win+R to open the run window and enter ping 192.168.71.138 -t
Note: What you enter is the ip of your virtual machine, don't copy it!
3. Next, start the ssh service on the virtual machine with the command:
$ sudo service sshd start
Here it prompts that the sshd command is not found
I failed to start here, the reason is that there is no installation, the installation command:
$ sudo apt install openssh-server
After the installation is complete, run sudo service sshd start
There is no error reported here, that is, the startup is successful
3. Start the connection of xftp 7
1. Create a new connection, the name is customized, the protocol defaults to SSH, the host enters the ip of its own virtual machine, and the port number defaults to 22
2. Select One Time to enter the password next time, select Accept and Save to save the password
3. The virtual machine file appears is success!