Install and configure telnet in Ubuntu Linux (1)

Source: Internet
Author: User

In Windows, telnet configuration is relatively simple. In Ubuntu Linux, the telnet settings are relatively troublesome. Many of my friends are not familiar with the installation process. It doesn't matter. Here we will explain how to install and configure telnet in Ubuntu Linux.

1. sudo apt-get install xinetd telnetd

2. After Ubuntu Linux telnet is installed, the system will also prompt:

Sudo vi/etc/inetd. conf and add the following line

 
 
  1. telnet stream tcp nowait telnetd /usr/sbin/tcpd /usr/sbin/in.telnetd 

3. Add the following content to sudo vi/etc/xinetd. conf for the next Ubuntu Linux telnet setting:

 
 
  1. # Simple configuration file for xinetd  
  2. #  
  3. # Some defaults, and include /etc/xinetd.d/  
  4. defaults  
  5. {  
  6. # Please note that you need a log_type line to be able to use log_on_success  
  7. # and log_on_failure. The default is the following :  
  8. # log_type = SYSLOG daemon info  
  9. instances = 60 
  10. log_type = SYSLOG authpriv  
  11. log_on_success = HOST PID  
  12. log_on_failure = HOST 
  13. cps = 25 30  
  14. }  
  15. includedir /etc/xinetd.d 

4. Add the following content to sudo vi/etc/xinetd. d/telnet:

 
 
  1. # default: on  
  2. # description: The telnet server serves telnet sessions; it uses \  
  3. # unencrypted username/password pairs for authentication.  
  4. service telnet  
  5. {  
  6. disable = no 
  7. flags = REUSE 
  8. socket_type = stream 
  9. wait = no 
  10. user = root 
  11. server = /usr/sbin/in.telnetd  
  12. log_on_failure += USERID  

5. restart the machine or restart the network service sudo/etc/init. d/xinetd restart

6. Use the TELNET client to remotely log on to non-root users.

7. Use root to log on:

Mv/etc/securetty. bak can be logged on as the root user:

Modify the file/etc/pam. d/login. Just comment out the following line.

 
 
  1. #auth required lib/security/pam_securetty.so 

8. Detailed configuration of Ubuntu Linux telnet/etc/xinetd. d/telnet


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.