Xshell connection to the Virtual Machine Ubuntu, xshell Virtual Machine ubuntu
Recently, in order to learn about database operations, we are preparing to build an environment in a virtual machine for operation (why do we build a learning environment on a virtual machine ?), The first step of system installation is blocked.
The prompt "cocould not connect to" is always displayed. The reason is that the ssh service is not installed on the virtual machine.
Then we will install the ssh service.
Sudo apt-get install openssh-server
No error.
Check whether the ssh service is running.
Ps-e | grep ssh
This status is enabled. If it is not enabled, use the command to enable it:
/Etc/init. d/ssh start
The connection is successful.
My VM is installed with the latest Ubuntu17.04. I have not encountered any problem of rejecting the key. For details, refer to the recruitment and recruitment process and solve the problem. This will gradually accumulate experience.
Install MySQL.
Sudo apt-get install mysql-server mysql-client
One command is successfully installed. It is really convenient to develop Ubuntu. If the software has advantages, I will select Ubuntu.