Recently, in the pre-research of MySQL cluster configuration, we need to install CentOS 6.6 on VirtualBox. After installing CentOS on the online tutorial, there is a problem: the text content outside the virtual machine cannot be copied and pasted into the CentOS terminal. Ask before, he suggested I use Xshell this third-party plug-in, do not know what reason has been unable to connect to the CentOS system, after nearly 1 days of time, finally fix, first put the solution record as follows.
1, Virtual machine network option settings, select host-only Adapter
2, setting up the local network
3, set the IP of the VirtualBox virtual network card
4, specify the IP in CentOS
5. Edit the CentOS IP on the same network segment as the VirtualBox virtual network card IP in Windows
6, Ping the virtual machine on Windows to see if you can ping the
7, using Xshell connection, session mode select SSH, fill in the virtual host IP address
8. The virtual machine NIC is set to NAT mode, then you can surf the Internet in the virtual machine and visit the website using the browser.
9. Other
CentOS on-check settings:
1. Turn off pre-fire
Service Iptables Stop
Chkconfig iptables off
2. Start the SSH service
Service sshd Start
Xshell Unable to connect to CentOS 6.6 problem