Tutorial 01: configure the FTP server
Configure the FTP server
1. Check whether the vsftpd software package is installed
[[Email protected] # rpm-Q vsftpd
Package vsftpd isnot installed
Ii. Search for software packages
[[Email protected] # cd/MISC/CD/Server/
[[Email protected] # ls * vsftpd *
Vsftpd-2.0.5-28.el5.x86_64.rpm
3. install the software package
[[Email protected] # rpm-IVH vsftpd-2.0.5-28.el5.x86_64.rpm
Warning: vsftpd-2.0.5-28.el5.x86_64.rpm: Header V3 DSA Signature: nokey, key ID 37017186
Preparing... ######################################## ### [100%]
1: vsftpd ####################################### #### [100%]
4. re-enable the vsftpd service
[[Email protected] # service vsftpd restart
Disable vsftpd: [failed]
Start vsftpd For vsftpd: [OK]
[[Email protected] # service vsftpd restart
Disable vsftpd: [OK]
Start vsftpd For vsftpd: [OK]
[[Email protected] # chkconfig vsftpd on
[[Email protected] # ls-LH/etc>/var/FTP/pub/etc.txt
5. Create a user and set the password
[[Email protected] # useradd Kaka
[[Email protected] # echo "RedHat" | passwd -- stdin Kaka
Changing passwordfor user Kaka.
Passwd: allauthentication tokens updated successfully.
6. Client Test
Enter the server
[[Email protected] ~] # Ftp 192.168.10.253
Connected to192.168.10.253.
220 (vsftpd 2.0.5)
530 please loginwith user and pass.
530 please loginwith user and pass.
Kerberos_v4rejected as an authentication type
Name (192.168.10.253: Root): ftp
331 please specifythe password.
Password:
230 loginsuccessful.
Remote System typeis UNIX.
Using Binary modeto transfer files.
Ftp> Cd pub
250 directorysuccessfully changed.
Ftp> ls
227 enteringpassive mode (192,168, 10,253,172, 46)
150 here comes thedirectory listing.
-RW-r -- 1 0 0 11629 sep 11 20: 34etc.txt
226 directory sendok.
Ftp> Get etc.txt (download file)
Local: etc.txt remote: etc.txt
227 enteringpassive mode (192,168, 10,253, 33,163)
150 opening binarymode data connection for etc.txt (11629 bytes ).
226 file send OK.
11629 bytesreceived in 0.00018 seconds (6.5e + 04 Kbytes/s)
Ftp>! Ls
Anaconda-ks.cfg desktop etc.txt install. Log install. log. Syslog
Ftp> putinstall. Log
Local: Install. logremote: Install. Log
227 enteringpassive mode (192,168, 10,253, 62)
550 permissiondenied.
Ftp> quit
221 goodbye.
[[Email protected] ~] # Lftp 192.168.10.253 (use lftp to access the server)
Lftp192.168.10.253: ~> User Kaka (enter the user name and password)
Password:
[Email protected]: ~> Put install. Log (Upload File)
33139 bytestransferred
[Email protected]: ~> Quit
Fault symptom:
[[Email protected] # service vsftpd restart
Disable vsftpd: [failed]
Start vsftpd For vsftpd: [failed]
Solution:
Check the installation and reinstallation of the software package.
This article is from the IT blog, please be sure to keep this source http://9265605.blog.51cto.com/9255605/1551367
FTP Server Configuration