1. Enable the Telnet Service
For security reasons, telnet is not allowed in Linux by default. If you need to use the telnet service, you must first enable the service.
The method is as follows:
1. CP/etc/xinetd. d/Telnet/etc/xinetd. d/telnet. Bak)
2. VI/etc/xinetd. d/telnet and change disable = yes to No. Save and quit.
3. Restart the xinetd service.
Service xinetd restart
OK. Now you can use the telnet service (of course, you need to allow the firewall settings)
4. Enable the telnet service automatically upon startup
Because telnet is integrated in Xinetd, you just need to start xinetd at startup.
Ntsysv
Select xinetd
Or press chkconfig xinetd -- level 345 on to press Enter.
2. allow root login.
Method 1:
Edit/etc/PAM. d/login and remove
Auth required/lib/security/pam_securetty.so
Method 2:
Edit/etc/securetty
Add: pts/0, pts/1… at the end ...... (If you add an pts/0, a root user is allowed to log on. If you add this parameter to PTS/N, n-1-1 root users are allowed to log on .)
Iii. Considerations for using telnet
1. For security purposes, Do Not Allow Logon as root.
2. If you need the root permission to execute the task, you can perform the following operations:
Telnet 192.168.0.7 (your host IP)
In login: enter your login name, such as Bill
Enter your password after password:
You can log on successfully.
Enter Su-root at the prompt.
Enter the root password. You can perform Root's duties. Note: If you directly enter Su and then enter the root password, you may be prompted: "comman is not find"