Xshell connects to the local Virtualbo Ubuntu, xshellvirtualbo
1. Open the Virtualbox software and start the ubuntu virtual machine. Ctrl + Alt + T open the terminal and enter the command: sudo apt-get update and then install ssh. Enter: sudo apt-get install ssh to close the VM.
2. Change the Virtual Machine network connection mode. This is the key point: Set the NIC to the bridging mode.
3. Configure the Xshell connection. Make sure that you know the IP address of the VM. If you do not know it, press Ctrl + Alt + T to open the terminal and enter the command ifconfig.
4. Open the xshell software, click "new", or press the shortcut key Alt + N to create a session.
5. Enter the ip address of the VM in the host in the session and click OK.
6. the SSH user name dialog box is displayed. Enter the user name you set and select remember user name. You do not need to enter the user name next time you log on. Then, the user authentication dialog box is displayed, enter the password and click OK.