How to implement CentOS in a native Windows-connected virtual machine

Source: Internet
Author: User

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: sudosystemctl stop firewalld.service

2. Turn off boot: sudosystemctl 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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.