Windows uses telnet to remotely log in and control the Linux system in the VMware virtual machine

  
. <1> Description

Install VMware Workstation10 on Windows 7 system, install CentOS6.5 operating system in this virtual machine, of course here Can be any Linux, the current mainstream is to use SSH, SecureCRT or Putty to log in and control the Linux system in the virtual machine, but if we want to use the telnet service that comes with Windows directly to log in to the Linux system, we must use the following Configure to build a telnet bridge.

Note: By default, users can log in to the Linux system using telnet and cannot log in as the root user. Therefore, if we want to use the root user to remotely maintain the operating system, we must use a normal user. Log in and then switch to the root user.

Second, the configuration steps

The first step, the network connection mode in the virtual machine can be NAT or hostonly, we use the NAT network connection method to achieve the Linux system in the virtual machine and Windows systems can ping each other. For detailed steps of NAT network configuration, please see this website: http://blog.csdn.net/tongyuehong137/article/details/44981389.

My Linux operating system IP is: 192.168.200.5, my windows7 system local IP address is: 192.168.1.250, I can ping Linux system from the windows command line, can also ping windows in Linux system system.



Secondly, in the Win7 command line input: telnet 192.168.200.5, found the system prompts: not internal and external commands, nor is it a runnable program, this is Because the Windows system does not open the Telnet service by default.



Then we will open the telnet service for windows, click on the "Start” menu" control panel & lsquo; button:

< Br>


Then select the ”Program“ button in the pop-up dialog:



Then select ” Close the Windows function & ldquo; button:


Finally, find the telnet client, and hook it in front of it, and click the confirmation button, then you will be prompted to start the service information, you need to restart windows The operating system can take effect:




Step 2: After restarting the windows system, start the virtual machine and Linux operating system, and in Linux Configure the firewall in the system, open the port 23 of the firewall (the port 23 is the default telnet port):

First, edit the firewall configuration file: /etc/sysconfig/iptables to 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

< Br>


Configure the firewall Need to restart the firewall [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 ]

Secondly, start the telnet service in Linux:

[tong@tong /]$ chkconfig telnet on

Then, check if the telnet service starts normally: Br>

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

Finally, type in the windows command line: telnet 192.168.200.5 to log in to the virtual machine In the Linux system, note that the telnet command is followed by the IP address of your own Linux system:



Copyright © Windows knowledge All Rights Reserved