Telnet service configuration

Source: Internet
Author: User
The Telnet service configuration steps are as follows: (based on Redhat Linux)

1. Install the Telnet package (usually two ).

1. telnet-client (or telnet). This package provides the Telnet client. Program ;
2. It is the telnet-server software package. This is the real telnet server software package!
Check whether these software packages are installed before installation. The method is as follows:
[Root @ wljs root] # rpm-Q Telnet
[Root @ wljs root] # rpm-Q telnet-Client
[Root @ wljs root] # rpm-Q telnet-server or rpm-Qa | grep Telnet
If no software package is detected, install it. By default, the client software package is installed in Red Hat Linux 9, generally, you only need to install the telnet-server package: (the installation package can also be downloaded and installed on the network.) because the telnet service depends on the xinetd service, you must first confirm that the xinetd package is installed.
3. Installation Package: # rpm-IVH telnet-server-0.17-25.i386.rpm (use the specific command Mount/dev/CDROM/mnt CP telnet-server-0.17-25.i386.rpm/tmp for CD installation)
Ii. Start the Telnet Service

1. Start the service
Method 1: Use ntsysv. In the displayed window, select Telnet and press OK!
Method 2: edit/etc/xinetd. d/telnet
# Vi/etc/xinetd. d/telnet
[Root @ test root] # vi/etc/xinetd. d/telnet
If you find disable = Yes <=, you just need to change "yes" to "no! The service is disabled by default. 2. Activate the service.
Telnet is stored under xinetd. Therefore, as long as xinetd is re-activated, the settings in Xinetd can be re-read. Therefore, the configured Telnet can be activated.
[Root @ wljs root] # service xinetd restart

Iii. Test services

[Root @ wljs root] # telnet IP (or hostname)
If the configuration is correct, the system prompts you to enter the user name and password of the remote machine.
Login:
Password:
Note: Only common users are allowed by default.

1. Telnet Root User Login

Root cannot connect to the host directly using telnet. Telnet is not very secure. By default, root cannot be allowed to telnet to the Linux host. To allow the root user to log on, use the following methods:
[Root @ test/root] # vi/etc/PAM. d/login
# Auth required pam_securetty.so # Add comments to this line!

Or
# Mv/etc/securetty. Bak
In this way, the root user can directly access the Linux host. However, we recommend that you do not do this. You can switch to the root user after entering the common user, and have the root permission! 2. Telnet is a solution for garbled Chinese characters. Change VI/etc/sysconfig/i18n:
Lang = "zh_cn.gb18030"
Language = "zh_cn.gb18030: zh_cn.gb2312: zh_cn"
Supported = "zh_cn.gb18030: zh_cn: Zh: en_US.UTF-8: en_us: en"
Sysfont = "lat0-sun16" so that the Chinese in SSH, Telnet terminal can be properly displayed. To display English properly, make the following changes:
Lang = "en_US.UTF-8"
Supported = "en_US.UTF-8: en_us: en"
Sysfont = "latarcyrheb-sun16"

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.