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.