(1) First the virtual machine has SSH service installed
1) automatic installation of SSH service
Apt-get Install Openssh-server
When the installation is complete, the SSH service will automatically open.
2) Check to see if the SSH service is turned on
Netstat-pant | grep 22
If the above output appears, the SSH service installation is successful and is turned on.
Note: The following SSH service is required for remote login.
(2) Right-click Virtual Machine-"Properties-" Virtual machine settings
Set up
If you cannot access it later, set the option in the Red box to "automatic"
(3) Enter virtual machine Shell interface, execute ifconfig command to get network information of virtual machine
You need to set the virtual machine IP statically:/etc/network/interfaces
sudo vi/etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see Interfaces (5).
# The Loopback network interface
Auto Lo
Iface Lo inet Loopback
# The Primary network interface
#auto eth0
#iface eth0 inet DHCP
Auto Eth0
Iface eth0 inet Static
Address 192.168.2.128
Netmask 255.255.255.0
Gateway 192.168.2.2
Restart your Ubuntu network card
sudo/etc/init.d/networking restart
Well, try to access the virtual machine using the SSH remote tool.
Local Area network host Access server host under VMware virtual machine (Ubuntu 12.04.1) that's something