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