1, the installation and use of FTP
Generally in the distribution of various Linux, the default with the FTP software is vsftp.
Use the following command #rpm-qa | grep VSFTPD can detect if the VSFTPD software is installed, and if it is not installed, install Yum search Vsftpdyum with the yum command vsftpd.x86_64
Start the service
Start ftp command #service vsftpd start
Stop FTP command #service vsftpd stop
Restart FTP command #service vsftpd restart
Configuration of the VSFTPD
There are three main FTP configuration files, which are located in the/etc/vsftpd/directory, respectively:
Ftpusers This file is used to specify that those users cannot access the FTP server.
User_list the default account that the file uses to indicate that the FTP is not accessible by default
Vsftpd.conf VSFTPD's master configuration file
Configure anonymous users to access
Anon_upload_enable=yes
Anon_mkdir_write_enable=yes
At this point, anonymous users can log on to upload and download files. Remember to restart the service after modifying the configuration file.
Creation and use of non-anonymous accounts
VSFTPD services are associated with system users, such as when we create a system user named Test, this user can implement a login with the default configuration
Issue: Connect to FTP server Tip "Oops:cannot change directory:/home/xxx"
Answer: This is related to SELinux settings
by Command Getsebool-a | grep ftp to view FTP security settings
Open FTP access to the user's home directory via command Setsebool Ftp_home_dir on
2. Telnet
Search the Telnet service to see which packages can be installed
Yum Search Telnet
Install Telnet Sever
Yum Install telnet-server.x86_64
Change the Telnet configuration file inside the/etc/xinetd.d/.
Service Telnet
{
Flags D =reuse
Socket_type =stream
Wait =no
User =root
Server =/usr/sbin/in.telnetd
Log_on_failure +=userid
Disable =no activates Telnet, if it is not used, it can be set to Yes
instances = 5 Sets the maximum number of connections.
}
Setting the Telnet port
Open the/etc/services file with the VI editor
The default port for Telnet is 23
Telnet 23/tcp
Telnet 23/UDP
You can make changes as needed
Start and stop Telnet
The Telnet service was handed over to xinetd to manage. So the system wants to install the XINETD service.
Start Telnet
/etc/init.d/xinetd restart
Installation and use of FTP, Telnet under Linux