Redhat Enterprise Server Linux 5 install Telnet

Source: Internet
Author: User
Check whether the Telnet package is installed

I have installed the Telnet package ....

B. Check whether telnet-server is installed.

No response. Because the telnet-server package is not installed by default, We need to install the telnet-server package.

C. Install the telnet-server package

C1. put 4th CDs under the virtual machine, and restart Linux (reboot under termical will be OK)

C2. mount the optical drive

Mount/dev/CDROM/mnt/CDR (CDR is a self-built folder)

C3. open the CD attached to the CDR.

CD/mnt/CDR

C4. find the telnet-server package telnet-server-0.17-30.i386.rpm we need

Find.-Name Telnet *

C5. copy the RPM package found

CP telnet-server-0.17-30.i386.rpm/Keith (Keith is the folder I created under the root directory)

C6. install the RPM package

Rpm-IVH telnet-server-0.17-30.i386.rpm

C7. verify whether the package is successfully installed

Rpm-Qa telnet-Server

Already installed ......

D. Modify the telnet configuration file.

VI/etc/xinetd. d/telnet

Comment out the disable = Yes line or change "yes" to "no.

Note: The configuration file telnet is only available after the telnet-server package is installed.

E. Restart the xinetd daemon.

Service xinetd restart

F. test whether the telnet configuration is complete.

Telnet localhost

OK ......

G. remotely log on to this server

Why cannot I log on? Reasons for Server Firewall

Solution:

1. Modify the firewall configuration file

VI/etc/sysconfig/iptables

Add the last line

-A RH-Firewall-1-INPUT-M state -- state new-m tcp-p tcp -- dport 23-J accept

Restart iptables.

Service iptables testart

This method does not work. Question ing ......

2. Disable the Firewall

A. Service iptables stop? Temporarily disabled. It is invalid after restart

B. chkconfig iptables off? Close forever

Log on again

Failed !!!!

Logon by the root user is not allowed in Telnet by default.

You need to make the following changes:

A. Change the configuration file

VI/etc/PAM. d/login

Comment out the following line

Auth required pam_securetty.so

C. Create a common user, log in with the common user, and switch to the root user.

OK, O (∩ _ ∩) O... Haha

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.