Configure the FTP server

Source: Internet
Author: User

Tutorial 01: configure the FTP server

  • Lab Objectives

Configure the FTP server

  • Lab procedure

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

 

 

 

 

  • Problem and Experience Summary

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/1552634

Configure the FTP server

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.