Article Title: configure the Telnet server in Linux. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
The telnet protocol is a member of the TCP/IP protocol family and is the standard protocol and main method of the Internet remote login service. It provides users with the ability to complete remote host work on local computers. Use the telnet program on the terminal user's computer to connect to the server.
1. Check whether the rpm package of telnet-server is installed
OS: RedHat9
[Root @ locahost ~] # Rpm-qa telnet-server
// For security considerations, the telnet-server.rpm is not installed by default, and the telnet client is standard. That is, the following software is installed by default. To facilitate the test, check it //
[Root @ locahost ~] # Rpm-qa telnet
Telnet-0.17-25
If not, install telnet-server
There is a telnet-server-0.17-25.i386.rpm on the 3rd disks, go to the Server directory to execute
[Root @ locahost ~] # Rpm-ivh telnet-server *. i386.rpm
2. Restart the xinetd daemon
Because the telnet service is also protected by xinetd, after the telnet-server is installed, the xinetd must be restarted to start the telnet service.
[Root @ locahost ~] # Service xinetd restart
Iii. Test
Let's first check whether TCP port 23 is enabled normally.
[Root @ locahost ~] # Netstat-tnl | grep 23
Tcp 0 0 0.0.0.0: 23 0.0.0.0: * LISTEN
If the preceding row exists, the service is running.
At this time, we can further confirm the Local Machine
[Root @ locahost ~] # Telnet localhost 23
Trying telnet 127.0.0.1...
Connected to localhost. localdomain (127.0.0.1 )..
Escape character is '^]'.
Red Hat Linux release 9 (Shrike)
Kernel 2.4.20-8 on an i686
Login:
If the netstat command does not return content, we have to continue with more in-depth configuration.
[1] [2] Next page