In general, the Telnet service is not installed by default in Linux and needs to be installed manually, because Telnet is dependent on the process of the Super Daemon, and the process that relies on the super daemon is usually placed in the/etc/xinetd.d/directory, and the independent process is generally placed in/ etc/init.d/rc.d/under this directory.
Installation steps:
1. Mount Disc image
[Email protected] ~]# mount/dev/cdrom/mnt
Mount:block Device/dev/cdrom is write-protected, mounting read-only
2. Go to the server directory mounted under/MNT
[Email protected] ~]# cd/mnt/server/
3. Install the Telnet-server software package, which is a Telnet server version of the package
[Email protected] server]# RPM-IVH telnet-server-0.17-39.el5.i386.rpm
4. Configure Telnet (very simple)
[Email protected] server]# vim/etc/xinetd.d/telnet
# Default:on
# description:the Telnet Server serves Telnet sessions; It uses \
# unencrypted Username/password pairs for authentication.
Service Telnet
{
Flags = Reuse
Socket_type = Stream
wait = no
user = root
Server =/usr/sbin/in.telnetd
Log_on_failure + = USERID
Disable = yes
}
Only need to change the above Disable=yes to =no, where yes indicates that the Telnet service will not wake up, if there is another machine telnet the server will not be able to connect, instead of Wake Telnet service
5. Restart XINETD Service
[Email protected] ~]# service xinetd restart
Note: When other machines telnet to the machine, it is not possible to authenticate with the root user, it is necessary to create a regular account, log in through a regular account and then switch to the root user
6. Create a regular account and set a password
[Email protected] ~]# Useradd test
[Email protected] ~]# passwd test
After the end of the Telnet server has been configured to complete, this time need to find a customer service side to test
Test:
xshell:\> telnet 192.168.241.100
Login:test
Password:
Login Incorrect
Login:test
Password:
Last Login:thu 21:51:26 on Tty3
[[email protected] ~]$ see here that it is already telnet connected to the user who can be switched to root, using
Su-or Su-root can
Install Telnet server under Linux