How do we operate the Telnet service on different host systems? Today, we will explain the remote connection between the XP system and the Linux system. Now let's take a look at the following content. Host operating system: XP, virtual machine operating system: CentOS, bridging.
1. linux telnet Service:
- # Telnet localhost or 127.0.0.1
- Trying 127.0.0.1...
- Telnet: connect to address 127.0.0.1: Connection refused
- Telnet: Unable to connect to remote host: Connection refused
2. telnet service from xp to linux:
- C:> telnet 192.168.11.138
- Connecting to 192.168.11.138... the connection to the host cannot be opened. port 23: Connection Failed
- # Chkconfig -- list | grep telnet
- Krb5-telnet: Off
Indicates that only the Kerberos server is installed, which is also a type of telnet, but not started.
From the above command can be seen that telnet is not installed and the krb5-telnet (also provides a telnet Service) is not started? Why? By default, the telnet service is not installed in linux, because the clear code is transmitted via telnet, which is too insecure and telnet is very old .. it is basically useless. We recommend that you use ssh to encrypt the transmitted information, which is much safer and better. Therefore, do not use telnet. Forget it. if you have to use it for a while, let's take a look. telnet may be used when the host and target board are connected in the embedded system. In short, ssh is used instead of telnet)
Because telnet is not installed, the corresponding items cannot be found with chkconfig and ntsysv, but the krb5-telnet is installed by default, note: ntsysv is dedicated to the Red Hat series, not the standard command. telnet uses port 23. in linux, run the following command to check the port status: nmap port scan and netstat-lt network service listen.
- #nmap localhost
- PORT STATE SERVICE
- 22/tcp open ssh
- 23/tcp open telnet
- 25/tcp open smtp
- 111/tcp open rpcbind
- 631/tcp open ipp
- 809/tcp open unknown
- # netstat -lt
- Proto Recv-Q Send-Q Local Address Foreign Address State
- tcp 0 0 *:809 *:* LISTEN
- tcp 0 0 *:sunrpc *:* LISTEN
- tcp 0 0 *:telnet *:* LISTEN
- tcp 0 0 localhost.localdomain:ipp *:* LISTEN
- tcp 0 0 localhost.localdomain:smtp *:* LISTEN
- tcp 0 0 *:ssh *:* LISTEN
The telnet service is not installed, so no corresponding items exist. run rpm-qa | grep telnet to check whether the installation is successful. telnet-clinet is installed by default. telnet is usually used. telnet-server is used for the server. use yum install telnet-server for installation, and then configure accordingly.