Windows XP uses telnet to remotely connect to Linux (CentOS6.2)

Source: Internet
Author: User


Windows XP uses telnet to remotely connect to Linux (CentOS6.2). Although telnet is not safe in plaintext transmission, it is always necessary to take time to learn. I do not have a deep understanding. Currently, most of the cases are through SSH (not quite familiar ). The environment of my experiment is in windows xp (host) + CentOS 6.2 Linux (guest. In fact, we can draw a line from the following: in this case, errors may occur, such as remote connection To routers, switches, and servers. Www.2cto.com tips: in xp, The ipconfig command is used to view IP addresses and other information, while in Linux, ifconfig is used. XP: ipaddr: 192.168.1.3 CentOS: ipaddr: 192.168.1.4 by default, "connecting to 192.168.1.3... the connection to the host cannot be opened. port 23: Connection Failed. So google, Baidu's answer is mostly: 1: "Management Tools"-> "services"-> enable the Telnet service (or cmd-> net start telnet to enable the telnet service) 2: "Control Panel"-> "windows Firewall"-> "exception"-> "add Port"-> Add telnet tcp 23 and telnet udp 23, the fact is that it does not work at all, but an error is still reported, so you cannot open the host connection. In fact, the above two operations are completely unnecessary on this issue. The problem is that we want to remotely connect to the Linux end. Www.2cto.com we now want to treat Linux as a server, while XP is only a client, so it is completely unnecessary to configure the telnet service of XP to enable it, and the firewall does not need to be enabled. However, if you want your XP Server to be remotely accessed, this is necessary. Okay. Now we can solve the problem accordingly. In Linux, there are two telnet function packages: telnet-client as the client and telnet-server as the server. Enter the telnet localhost in the terminal, and the system prompts "command not found". I thought it was because the telnet-client was not installed, as a result, yum install telnet-client was hit with the technical key skillfully, and the system prompts "No package telnet-client available ". Ah, too confident. You do not need to worry about this issue currently. Open the terminal in Linux and go to super administrator mode. 1. Check whether the telnet-server function package is installed, and run rpm-qa | grep telnet. If it is installed, a version number is output. Jump directly to Step 3. Otherwise, go to step 2. 2. install the telnet-server package, yum install telnet-server www.2cto.com. 3. enable the Service, vi/etc/xinetd. d/telnet, find the line "disable = yes", and change "yes" to "no", "ESC", and "wq. You can also use chkconfig telnet on to directly enable the 4: Activation service. telnet is stored under xinetd. Therefore, you need to reactivate xinetd and run the Command service xinetd restart 5: OK, go back to XP and connect remotely. Finally, for the sake of security, remember to disable the Linux telnet service after the experiment is completed. This is from the column of Ajioy.

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.