Use Putty to remotely log on to centos

Source: Internet
Author: User
In the Vista environment, the local NIC address is 192.168.0.56 (wired, and the gateway is 192.168.0.1), and DHCP is used wirelessly. After using virtualbox to install centos5.4, configure the network parameters so that Putty can simulate the steps to remotely log on to the centos system:
1. on the "network" setting interface of virtualbox, select "Host-only adapter" as the network connection mode ".
2. right-click the "network" icon on the Vista desktop, click the "properties" option, and select "manage network connections" to open the interface. You can find "virtualbox host-only network ", set its IP address to 192.168.1.1.
3. Start centos and Log On As root:
(1) vi/etc/sysconfig/network, add/modify
Networking = Yes
Networking_ipv6 = No
Hostname = localhost. localdomain
(2) vi/etc/sysconfig/network-scripts/ifcfg-eth0, add/modify
# Advanced Micro Devices [amd] 79c970 [pcnet32 Lance]
Device = eth0
Bootproto = static
Ipaddr = 192.168.1.2
Hwaddr = 08: 00: 27: 54: BC: 67
Netmask = 255.255.255.0
Onboot = Yes
Type = Ethernet
(3) vi/etc/resolv. conf, add/modify:
Search localdomain
(4) vi/etc/hosts, add/modify:
# Do not remove the following line, or various programs
# That require Network functionality will fail.
127.0.0.1                           Localhost. localdomain localhost
: 1                       Localhost6.localdomain6 localhost6
192.168.1.2 Xyycentos           Cent
5. Ping from both Vista and Linux systems is OK.
Vista: Ping 192.168.1.1
Linux: Ping 192.168.1.2
6. Start putty in Vista and set the IP address to 192.168.1.2.

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.