Install and configure the telnet service in RHEL6

Source: Internet
Author: User
1. install the telnet service. 1. check whether the software package is installed. run the following command: suyumlistinstalled | grep-itelnet to check whether telnet-server is installed. If yes, go directly to 2. start the telnet service. 2. run the command to install the software package: yuminstall...
1. install the telnet service. 1. check whether the software package has been installed. run the command: suyum list installed | grep-I telnet to check whether telnet-server is installed. If yes, go to "2. start the telnet service ". 2. run the command to install the software package: yum install telnet-server
2. start telnet service 1. enable service Method 1: execute the command: ntsysv in the pop-up window, select telnet, and then press OK. Method 2: edit/etc/xinetd. d/telnet www.2cto.com to find the disable = yes line, change it to: disable = no2, activate the service execution command: service xinetd restarttelnet is mounted under xinetd, once the xinetd is re-activated, the settings in xinetd can be re-read, and the configured telnet can be activated.
3. test the telnet service to execute the command: telnet 127.0.0.1 or telnet <本机ip> If the configuration is correct, the system will prompt you to enter the user name and password: Trying 127.0.0.1... connected to 127.0.0.1.Escape character is '^]'. red Hat Enterprise Linux Server release 6.2 (Santiago) Kernel 2.6.32-220. el6.x86 _ 64 on an x86_64login: test www.2cto.com Password: Last login: Wed Apr 4 11:12:17 from 192.168.1.107 note: By default, only normal users are allowed to log on. If the telnet command is knocked out, the response is slow. it takes a long time to prompt the user name and password, you can edit/etc/resolv. conf file, comment out the nameserver, or add: nameserver 127.0.0.1 or nameserver. <本机ip> . Restart the NIC: ifconfig eth0 downifconfig eth0 up
4. set the telnet port to edit/etc/services to find telnet. the following content is found: telnet 23/tcptelnet 23/udp: Change 23 to unused port number (for example, 2000 ), save and exit. restart the telnet service. The default port number for telnet is changed. Www.2cto.com
5. it is insecure to allow the root user to log on to telnet. by default, the root user is not allowed to log on to the Linux host through telnet. To allow the root user to log on, run the following command: mv/etc/securetty. bak. then, the root user can telnet to log on to the Linux host. However, this is not recommended. We recommend that you switch to the root user after logging on as a normal user and have the root permission! Note: The etc/securetty file controls the device that the root user logs on to. this file records the device names that can be logged on as the root user, such as tty1 and tty2. Users cannot log on as root users from devices that never exist in this file. In this case, the user can only log in as a common user, and then use the su command to convert it to the root user. If/etc/securetty is an empty file, the root user cannot log on to the system from any device. You can only log on as a common user, and then use the su command to convert it to a root user. If the/etc/securetty file does not exist, the root user can log on from anywhere. This will cause security issues, so the/etc/securetty file must exist in the system.
I just want to see if I don't buy it.
Related Article

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.