Linux installation method Telnet setting method

  
Telnet service configuration steps are as follows:
First, install telnet package (usually two)

1, telnet-client (or telnet) This package provides the telnet client program;
2, telnet-server, this package provides the telnet program;
Before installing, check if these packages are installed, as follows:
[root@echo root]#rpm –q telnet or[root@wljs root]#rpm –q telnet-client
[root@echo root]#rpm –q telnet-server
If not The package is detected and needs to be installed. Red hat 9 has the telnet package installed by default. Generally, the telnet-server package is installed.
1, in the red hat linux 9 installation disk 3 to get the telnet-server-0.17-25.i386.rpm package.
2, installation package
[root@echo root]#rpm –i telnet-server-0.17-25.i386.rpm
Second, start telnet service

1. Open the service
Method 1: Use ntsysv, in the window that appears, add telnet front*, then press OK.
Method 2: Edit /etc/xinetd.d/telnet
[root@echo root]# vi /etc/xinetd.d/telnet
Find disable = yes Change yes to no .
2, activation service
[root@echo root]# service xinetd restart
three, service

[root@echo root]#telnet ip (or hostname)
If the configuration is correct, the system prompts you to enter the username and password of the remote machine
Login:
Password:
Note: Only normal users are allowed by default
4. Set telnet port

#vi /etc/services
After entering the edit mode, look for telnet (in the edit mode, enter /telnet)
You will find the following content:
telnet 23/tcp
telnet 23/udp
Change 23 to an unused port number (for example: 2000), exit vi, restart the telnet service, and the telnet default port number is modified.
V. Telnet Service Restrictions

telnet is a clear text transfer password and data. If you are not satisfied with its default settings, it is necessary to limit its service scope.
Six, Telnet root user login

Telnet is not very good, the default is not allowed root to telnet into the Linux host. To allow the root user to log in, use the following method:
[root @echo /root]# vi /etc/pam.d/login
#auth required pam_securetty.so #Add this line to the comment!
or
[root@echo root]# mv /etc/securetty /etc/securetty.bak
This way, root can go directly to the Linux host. However, it is not recommended to do so. You can also switch to the root user after the normal user enters, and have root privileges.
Note: I don't need to install Telnet in my FC4, because I already have krb5-telnet. Go directly to the second step
vi /etc/xinetd.d/krb5-telnet.

Copyright © Windows knowledge All Rights Reserved