Set the network connection mode to Bridge Mode in the Virtual Machine. manually set the network parameters in Ubuntu to the same network segment as windows, and ensure that the network can be pinged to each other. Run sudoapt-getinstallopenssh-server to start SSH-serversudo/etc/init. d/sshstartwindows and use the PuTTy software.
Set the network connection mode to Bridge Mode in the Virtual Machine. manually set the network parameters in Ubuntu to the same network segment as windows, and ensure that the network can be pinged to each other.
Install SSH-server
Run the following command on the terminal: sudo apt-get install openssh-server.
Start SSH-server
Sudo/etc/init. d/ssh start
In windows, use the software PuTTy, fill in the IP address of the Ubuntu you just set, and connect directly. Now let's have fun (of course, the virtual machine must be enabled first ).
Windows Linux operating tool putty-x86 (download)
P.S. Connection refused Error
If the following error occurs, it is likely that the ssh-server has not been installed:
Ssh: connect to host localhost port 22: Connection refused