Install and configure the telnet Service

Source: Internet
Author: User
Install and configure the telnet service-Linux Enterprise Application-Linux server application information. For more information, see. Author: Wang xiangbaituo

Install telnet

RH9.0 install and start the telnet Service
RH9.0 install and start the telnet service step: by coding
Telnet is divided into two parts
One is a telnet Client
One is the telnet server
First, determine whether the system has installed the telnet client and the server.
Rpm-qa | grep "telnet"
Telnet client rpm package name: telnet-0.17-25.386.rpm (in the first installation disc of RH)
Telnet Server rpm package name: telnet-server-0.17-25.i386.rpm (in the third RH disc)
# Rpm-ivh telnet-0.17-25.386.rpm prompts successful installation
# Rpm-ivh telnet-server-0.17-25.i386.rpm prompts that the service is successfully started:
After telnet-server is successfully installed, a text file for telnet is generated in the/etc/xinetd. d directory. The content is as follows:
# Default: on n # description: The telnet server serves telnet sessions; it uses # unencrypted username/password pairs for authentication. service telnet {flags = REUSE socket_type = stream wait = no user = root server =/usr/sbin/in. telnetd log_on_failure + = USERID disable = yes}
Change disable = yes to disable = no in the above file;
Save and exit
# Chkconfig -- list
Xinetd based services:
Chargen-udp: off
Rsync: off
Chargen: off
Daytime-udp: off
Daytime: off
Echo-udp: off
Echo: off
Services: off
Servers: off
Time-udp: off
Time: off
Sgi_fam: on
Telnet: on
Telnet no indicates that the configuration file is successfully modified because it is a service protected by xinetd, so you need to start it using the following methods:
Restart xinetd
# Service xinetd restart
# Nmap 127.0.0.1 Starting nmap V. 3.00 (www.insecure.org/nmap/) Interesting ports on localhost. localdomain (127.0.0.1): (The 1595 ports scanned but not shown below are in state: closed) port State Service 22/tcp open ssh 23/tcp open telnet 25/tcp open smtp 111/tcp open sunrpc 1024/tcp open kdm telnet
The service is successfully uninstalled:
Stop the service;
# Rpm-ev telnet-server-0.17-25.i386.rpm
If you are prompted that the telnet-server is successfully uninstalled, you will be prompted to change the name of telnet to telnet. rpmsave to save the settings.


--------------------------------------------------------------------------------


Configure Telnet

1. Check whether the installation package exists:
Rpm-q telnet
Rpm-q telnet-server
2. If not, install:
Rpm-I telnet-server-0.17-25i386.rpm
Note that there may be different versions of TelnetServer.
3. Run ntsysv. ntsysv is the Program for managing services in the system. Select * Before Telnet *.
4. service xinetd restart
5. the Telnet configuration file is in
/Etc/xinetd. d/telnet
You can modify the authorized CIDR Block, domain name, and time range.
6. By default, Telnet does not run the root permission to log on. If necessary, modify:
Vi/etc/pam. d/login
# Auth required pam_securetty.so #
Add comments to the uplink.
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.