Telnet is used in many systems. Today, we will explain how to configure the RedHat telnet service. Because RedHat AS3/4 uses os5 authentication, the default telnet service cannot perform root login. Therefore, you need to re-install the Security telnet-server for configuration. The specific steps are as follows:
Configure RedHat telnet Service 1. Download the secure telnet-server.
Configure RedHat telnet Service 2. Modify/etc/xinetd. d/telnet, change disable = yes to no, and then/etc/xinetd. d/disable = no in the krb5-telnet to yes (after the service is restarted, set according to the set value)
- QUOTE:[root@ika xinetd.d]# cat /etc/xinetd.d/telnet
- # default: on
- # description: The telnet server serves telnet sessions; it uses \
- # unencrypted username/password pairs for authentication.
- service telnet
- {
- disable = no
- flags = REUSE
- socket_type = stream
- wait = no
- user = root
- server = /usr/sbin/in.telnetd
- log_on_failure += USERID
- }
Configure RedHat telnet Service 3. Modify the/etc/pam. d/login file and comment out the second line "auth required pam_securetty.so ".
- QUOTE:[root@ika pam.d]# cat login
- #%PAM-1.0
- #auth required /lib/security/pam_securetty.so
- auth required /lib/security/pam_stack.so service=system-auth
- auth required /lib/security/pam_nologin.so
- account required /lib/security/pam_stack.so service=system-auth
- password required /lib/security/pam_stack.so service=system-auth
- session required /lib/security/pam_stack.so service=system-auth
- session optional /lib/security/pam_console.so
Configure RedHat telnet Service 4, modify the/etc/securetty file, and add the login tty, such as pts/0, pts/1, pts/2 .......
- QUOTE:[root@RN031 etc]# cat securetty
- pts/0
- pts/1
- pts/2
- vc/1
- vc/2
- vc/3
- vc/4
Configure RedHat telnet service 5. restart xinetd: service xinetd restart.