1. Determine the CentOS IP address, the command is Ifconfig, the LINUXIP address is 192.168.85.128
The IP address of the 2.WIndows is 192.168.16.1,
3. Ensure that CentOS and windows can ping each other
Ping 192.168.16.1
Ping 192.168.85.128
4. Turn off the CentOS firewall
( Note: The following is a previous version of CentOS7
If there is no iptables in CentOS, install with the following command to turn off the firewall
Yum Install-y iptables-services
etc/init.d/iptables Stop)
CentOS7 This version of the firewall uses the default firewall, unlike the previous version using Iptables. Configure the firewall as follows:
1. Turn off the firewall: sudo
systemctl stop firewalld.service
2. Turn off boot: sudo
systemctl disable firewalld.service
5. To see if an SSH installation package is installed, CentOS is the visitor, so you need to install the Ssh-server installation package (if no output is displayed indicating that no openssh-serveris installed, by entering yum install Openssh-server), as shown, has been installed
The View command is: RPM-QA | grep ssh
6. Locate the Sshd_config file in the/etc/ssh directory and modify some parameters
Remove the comment from the port and the listening address, and then allow Telnet, and then turn on using the username password as the connection verification.
7. Turn on the SSHD service, services sshd start
8. Check if sshd is turned on, Ps-e|grep sshd
or see if Port 22 is listening, Netstat-an | grep 22
9. If all of the above preparations are successful, then we can try to connect. After the configuration is made, you can access the virtual machine's CentOS in Windows. Congratulations, take the first step ~
How to implement CentOS in a native Windows-connected virtual machine