Using Putty to access Ubuntu

Source: Internet
Author: User
Tags ssh nameserver

To be able to use putty to access Ubuntu, take the following steps:

1. Install SSH service.

Installation method:

sudo apt-get install SSH

2.ubuntu Configuration Network.

To make Ubuntu IP address and XP IP address in the same network segment, the same network segment refers to the IP address and mask and the resulting value is the same, this value is called the network identity, that is, the network identity, the same network segment. For example: The IP address of Ubuntu is 192.168.1.72, the mask is: 255.255.255.0, then the network identification after phase is 192.168.1.0. The IP address of XP is 192.168.1.215, the mask is: 255.255.255.0, then the network identification after phase is 192.168.1.0.

(Note: phase is the corresponding bit phase, for example: 192 and 255 with, 168 and 255 with, 1 and 255 with, 215 and 0 with)

Change the configuration in the file/etc/network/interfaces.

Auto Eth0
Iface eth0 inet Static
Address 192.168.1.72
Netmask 255.255.255.0
Network 192.168.1.0
Broadcast 192.168.1.255
Gateway 192.168.1.1
Setting up DNS

Change file/etc/resolv.conf

NameServer 192.168.1.1
NameServer 202.96.134.133
Change the back address to the local DNS

If you do not know DNS, you can obtain the following methods:

1. Ask the local telecommunications sector.

2. Under XP, enter the "Run"-"typed cmd-" at the command line through instructions nslookup or ipconfig/all get

Enter command sudo/etc/init.d/networking Restart can make network settings take effect

3.VMware Network Settings

Go to "VM"-"Settings ...", under the hardware option there is a network Adapter, select this item with the mouse, and select connection in the right network bridged. There are articles that NAT can also, I tried, no, I do not know what the reason.

4. Set Putty

The administrator is the user in Ubuntu to log in, 192.168.1.72 is the address of Ubuntu.

You can use Putty to log in to Ubuntu by using the above settings.

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.