[RedHat] detailed instructions on using telnet in RedHat

Source: Internet
Author: User

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"

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.