After the VMware Workstation is installed on the local virtual machine, it is inconvenient to knock commands directly on the virtual machine.
At this point we need a remote command tool to manage the virtual machine, which is recommended using the Xshell remote command-line tool
1. Download tool
Download the installation directly and choose the non-commercial version, which is free to use.
2. Installing Xshell
So the installation is complete, this is simple.
Next we have to let him connect to our virtual machine and Notice the critical moment is up.
1. I install the Ubuntu16.04 version here, the virtual machine installation will not say. This is what it looks like after installation.
Do not ask why I choose the graphical interface, if you do not like that you can put the mouse focus to the virtual machine, press CTRL+ALT+F2
Yes, this is the command-line mode.
We continue to ...
There are two prerequisites for Xshell linking a virtual machine (I may not say so, of course)
1.360 security guard, 360 antivirus, rising and so on, a bunch of anti-virus software must be all shut down, do not ask me why. ( If you don't want to get yourself into trouble, turn it off )
2. The firewall of the native firewall and the virtual machine must be turned off ( this machine has to be turned off )
Let's take a look at the commands on the Ubuntu firewall.
---view status
sudo UFW status
---off
sudo ufw disable
---Open
sudo UFW enable
I default your upper steps are gone ah, then next to set up the Ubuntu system related operations
1. See if SSH is installed
---view
SSH localhost
Of course there is a way to go to/etc/ssh/to see a look is also possible.
If the Execute command is not installed
---installation
Apt-get installl Openssh-server
After the installation is complete, let's check
cd/etc/ssh/
The result of success is this.
Watch out, watch out, it's not over yet. The most critical place in the sshd_config.
Open sshd_config file using vim
If you do not install vim with the following command to install, of course, you use VI modification is no problem. It is important to note that no matter what the editor you must first get root permission (),
The command to install Vim is as follows
Apt-get Install Vim
Enter command to edit after successful installation
Vim Sshd_config
If there's no problem, it should be. Feedback like this
Then find permitrootlogin change to Yes , save exit
Next, check the virtual machine IP address.
Ifconfig
This is the IP address of the virtual machine
Ok so the virtual machine is set up over here.
Go back to VMware Workstation set up the network connection mode, NAT mode does not move, directly determine the good ~
We're going to look for Xshell with IP.
1. Open the software and click New
2. Set the name, host
3. OK, click Connect, enter the login name "Remember user name" (for example: root)
4. Enter password-click OK
5. Successful Connection
Conclusion:
So far, our Xshell. Remote connection to the local VMware virtual machine is successful, you can knock commands locally,
About the connection way this piece, also has the bridge the way can choose. If you are interested, try it out.
Xshell connecting to a local Ubuntu virtual machine