Configure RedHat telnet

Source: Internet
Author: User

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)

 
 
  1. QUOTE:[root@ika xinetd.d]# cat /etc/xinetd.d/telnet  
  2. # default: on  
  3. # description: The telnet server serves telnet sessions; it uses \  
  4. #       unencrypted username/password pairs for authentication.  
  5. service telnet  
  6. {  
  7. disable = no 
  8. flags           = REUSE 
  9. socket_type     = stream 
  10. wait            = no 
  11. user            = root 
  12. server          = /usr/sbin/in.telnetd  
  13. 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 ".

 
 
  1. QUOTE:[root@ika pam.d]# cat login  
  2. #%PAM-1.0  
  3. #auth      required    /lib/security/pam_securetty.so  
  4. auth       required     /lib/security/pam_stack.so service=system-auth  
  5. auth       required     /lib/security/pam_nologin.so  
  6. account    required     /lib/security/pam_stack.so service=system-auth  
  7. password   required     /lib/security/pam_stack.so service=system-auth  
  8. session    required     /lib/security/pam_stack.so service=system-auth  
  9. 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 .......

 
 
  1. QUOTE:[root@RN031 etc]# cat securetty  
  2. pts/0  
  3. pts/1  
  4. pts/2  
  5. vc/1  
  6. vc/2  
  7. vc/3  
  8. vc/4 

Configure RedHat telnet service 5. restart xinetd: service xinetd restart.

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.