Enable telnet and FTP services for remote logon, and allow root users to log on

Source: Internet
Author: User
After RedHat is installed, you must set FTP and Telnet service files to start the FTP and Telnet services. You can enable the services through remote control.

1.1 Log On As the root user and enter the terminal command mode;

1.2 enable the FTP service.

CD/etc/xinetd. D. Edit the configuration file gssftp for the FTP service:

Figure 1 enable FTP service settings.

VI gssftp will modify two items:

(1) Remove server_args =-l-A and Change-A to server_args =-L.

(2) Change disable = yes to disable = No

(3) Save and exit.

1.3 enable the Telnet Service

CD/etc/xinetd. D, check the settings of the Telnet service configuration file krb5-telnet:

Figure 2 Enable Telnet service settings

VI krb5-telnet,

(1) Change disable = yes to disable = No. Save and exit.

1.4 activate the service:

Telnet/FTP is stored under xinetd. Therefore, as long as xinetd is re-activated, the settings in Xinetd can be re-read. Therefore, the configured Telnet/FTP can be activated.

Activate the Directory and command:

CD/etc/rc. d/init. d/

Service xinetd restart

Sometimes the system prompts that the command does not exist and the command path needs to be added.

[Root @ localhost init. d] # service xinetd resart

Bash: Service: Command not found

[Root @ localhost init. d] #/sbin/service xinetd restart

Figure 3 restart the FTP and Telnet services

Connect to FTP 1.5

Note: Due to security concerns, Telnet does not allow the root user to log on directly. You need to create a common user to use this user to log on and then switch to the root user. Su-Root
2. It is not safe to allow the root user to log on. However, for the convenience of testing, you can also allow the root user to log on, however, it is best not to use this method for public networks. VI/etc/PAM. d/login comments the auth required pam_securetty.so in the file with "#" to allow the root user to log on.

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.