WIN7 use putty to connect CentOS6.0 (VirtualBox virtual machine)

Source: Internet
Author: User
Tags ssh iptables

Operating Environment: Win7_32bit Professional Edition.

VBox Virtual machine CentOS Installation Additions expansion is more cumbersome. Simply use Putyy to build an SSH connection, leaving CentOS under VBox with resolution only 800*600 and the text interface TTY terminal is not friendly.

Recommended connection mode:host-only Adapter (host mode).

Knowledge Summary: VBox in the host to simulate a dedicated virtual machine to use the network card, all virtual machines are connected to the network card, we can set up this card to achieve the Internet and many other functions. Host mode through the virtual machine and network card settings can complete the three network connection mode to achieve the function. NAT bridged Adapter Internal

the relationship between virtual machine and physical host: The default is not mutual access, the two sides do not belong to the same IP segment, the HOST-ONLY network card default IP field 192.168.56.X subnet mask is 255.255 255.0, the following virtual machines are assigned to this network segment.

the relationship between virtual machines and other physical hosts in the network: The default is not to access each other, as in the same reason, through the settings, you can achieve mutual access.

virtual machine and virtual machine relationship: By default, only virtual machines can access each other, are in a network segment. The so-called host also just said that the virtual host.

First, CentOS the check setting:

1. Before closing the fire
Service Iptables Stop
Chkconfig iptables off

2. Start SSH Service
Service sshd Start

3. View CentOS IP Address: ifconfig-a

inet addr:192.168.56.101 bcast:192.168.56.255 mask:255.255.255.0

Then, go back to WIN7 and ping 192.168.56.101 to make sure the virtual machine is responding.

C:\users\yyzx>ping 192.168.56.101

Pinging 192.168.56.101 with 32 bytes of data:
Reply from 192.168.56.101: Byte =32 time =1ms ttl=64
Reply from 192.168.56.101: Byte =32 time <1ms ttl=64
Reply from 192.168.56.101: Byte =32 time <1ms ttl=64
Reply from 192.168.56.101: Byte =32 time <1ms ttl=64

Ping Statistics for 192.168.56.101:
Packet: Sent = 4, received = 4, lost = 0 (0% lost),
Estimated time, in milliseconds, for a round trip:
Shortest = 0ms, longest = 1ms, average = 0ms

Next, set the virtual machine card VirtualBox host-only Ethernet Adapter

IP Address: 192.168.56.1 Mask: 255.255.255.0 gateway and DNS server address are not filled in.

Then putyy the game, the session mode chooses SSH, fills in the virtual host IP address 192.168.56.101.


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.