Windows uses telnet to remotely log on to and control the Linux System in the vmwarevm

Source: Internet
Author: User

Windows uses telnet to remotely log on to and control the Linux System in the vmwarevm

I. Description

Install VMware Workstation10 on Windows 7 and CentOS6.5 on this virtual machine. Of course, this can be any Linux, currently, SSH, SecureCRT, or Putty are used to log on to and control Linux systems in virtual machines, however, if we want to remotely log on to Linux using the telnet service provided by windows, we need to use the following configuration to build a telnet bridge.

Note: by default, users cannot remotely log on to Linux using telnet, so if you want to use root users to remotely maintain the operating system, you must log on as a common user and then switch to the root user.

Ii. configuration steps

Step 1: Select NAT or hostonly for the network connection method in the Virtual Machine. Here we use the NAT network connection method to ping each other in the Linux and Windows systems of the virtual machine, for detailed steps for NAT network configuration, see this URL: http://blog.csdn.net/tongyuehong137/article/details/44981389.

My Linux operating system IP address is 192.168.200.5, and my local IP address of windows 7 is 192.168.1.250. I can ping the Linux system from the windows command line, in Linux, You can ping windows.



Then, enter telnet 192.168.200.5 in the Win7 command line and find that the system prompts that it is not an internal or external command or a program that can be run, because the Telnet service is not enabled in Windows by default.



In this case, enable the windows telnet service and click "Control Panel" in the "Start" menu:



Then, select the "program" button in the pop-up dialog box:



Then select the "enable or disable Windows" button: <喎?http: www.bkjia.com kf ware vc " target="_blank" class="keylink"> VcD4KPHA + pgltzybzcm9 "http://www.2cto.com/uploadfile/Collfiles/20150421/20150421101444303.png" alt = "program enabled">


Finally, find the telnet client, check it in front of it, and click OK. Then, the system prompts the information about starting the service. You need to restart the windows operating system to make it take effect:




Step 2: restart the windows system, start the Virtual Machine and Linux operating system, configure the firewall in the Linux system, and set port 23 of the firewall (port 23 is the default telnet port) enable:

First, edit the firewall configuration file:/etc/sysconfig/iptables and add a line to the file: -a input-m state -- state NEW-m tcp-p tcp -- dport 23-j ACCEPT

[Tong @ tong bin] $ sudo vi/etc/sysconfig/iptables



Restart the firewall after the firewall is configured.
[Tong @ tong/] $ sudo service iptables restart
Iptables: Setting chains to policy ACCEPT: filter [OK]
Iptables: Flushing firewall rules: [OK]
Iptables: Unloading modules: [OK]
Iptables: Applying firewall rules: [OK]

Next, start the telnet service in Linux:

[Tong @ tong/] $ chkconfig telnet on

Then, check whether the telnet service is properly started:

[Tong @ tong/] $ chkconfig telnet -- list
Telnet on
[Tong @ tong/] $

Finally, enter telnet 192.168.200.5 in the windows command line to log on to the Linux System of the Virtual Machine. Note that the telnet command is followed by the IP address of your own Linux system:


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.