FTP Server (File Transfer Protocol )
FTP Server is a very extensive file transfer service, the default FTP service for Linux is VSFTPD, which is a safe, reliable and easy-to-use program.
Step One: Installation Services
1. Prepare the network environment: 2 Linux hosts, one for the server side and the other for the client. With the Yum repository on the server side
2. Installation Services
[Email protected] Desktop]# yum-y install VSFTPD
Installing:vsftpd-2.2.2-11.el6_4.1.x86_64 1/1
Verifying:vsftpd-2.2.2-11.el6_4.1.x86_64 1/1
Installed:vsftpd.x86_64 0:2.2.2-11.el6_4.1
complete!
3. turn on the service
[[Email protected] Desktop]# service Vsftpdstart
Start vsftpd for vsftpd: [OK]
4. FTP configuration file
1) Main configuration file:/etc/vsftpd/vsftpd.conf
2) blacklist file:/etc/vsftpd/ftpusers
3) Black/White list file:/etc/vsftpd/user_list
Step Two: Client testing
1. Create a test file, create a file/var/ftp/ftptest.txt/home/lisi/lisi.txt
[email protected] ftp]# Touch ftptest.txt
[Email protected] ftp]# Touch/home/lisi/lisi.txt
2. Windows Client side testing
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/5B/7F/wKiom1UKQNnR9NS9AAGNFgKPRGo780.jpg "title=" FTP client authentication. jpg "alt=" wkiom1ukqnnr9ns9aagnfgkprgo780.jpg "/>
3. Linux Client Authentication
[[Email protected] Desktop]# FTP 192.168.4.5//Login FTP
Connected to 192.168.4.5 (192.168.4.5).
Name (192.168.4.5:root): FTP//Enter the default anonymous user
331 Specify the password.
Password://any password
Successful Login. Login successful
ftp> pwd
257 "/"//The root directory path for anonymous users is/var/ftp
Master configuration file (vsftpd.conf) parsing:
Anonymous_enable=yes//(default) Allow Anonymous Logon
Local_enable=yes//Allow local users to log in
Anon_upload_enable=yes//Allow anonymous uploading of files
Anon_mkdir_write_enable=yes//Allow anonymous creation of directories
Anon_other_write_enable=yes//Allow other write permissions
Write_enable=yes//(default) Allow Write (global)
anon_umask=022//Set upload file permission mask
Chroot_local_user=yes//Imprison local user home directory
Userlist_enable=yes//(default) Enable User_list list file
Userlist_deny=no//User_list as Whitelist
MAX_CLIENTS=20//maximum number of concurrent connections allowed
max_per_ip=2//Per IP address maximum number of connections allowed
anon_max_rate=50000//Anonymous download speed, byte/s
local_max_rate=200000//local user download speed, byte/s
ftpusers blacklist--- à userlist_enable=yes/no This parameter determines whether the blacklist is valid
user_list-- à userlist_deny=yes/no "Yes" is blacklisted as "NO" as the whitelist
Step Three: Troubleshooting
The following error occurred while entering the FTP command on the Linux customer service side
[[Email protected] Desktop]# FTP 192.168.4.5
Bash:ftp:command not found
Cause: The client does not have an FTP program installed
[[Email protected] Desktop]# yum-y install FTP
Description
When you log on as an anonymous user, the root directory is in the/var/ftp directory, and the root directory is in the user's home directory when you log on as a local user
This article is from the "Snail Climb up" blog, please be sure to keep this source http://20120415.blog.51cto.com/3241719/1622151
Linux Host FTP Service configuration