从头开始打造Ubuntu服务器(杂) - FTP Server(vsftp)

Server Side

 

1. Install the vsftpd with the package manager.

 

     apt-get install vsftpd

 

2. Configure the conf file.

 

    Open /etc/vsftpd.conf. And add the following lines,

 

    ###Enable anonymous read

    anonymous_enable=YES

    anon_root=/
    anon_world_readable_only=YES

 

    #anon_mkdir_write_enable=YES
    #anon_upload_enable=YES

    ###Enable local user read and write
    local_enable=YES
    write_enable=YES

 

3. Restart the server.

 

    /etc/init.d/vsftpd restart

 

Client Side

 

    ftp localhost

    user: ftp

    password:

 

    ftp localhost

    user:robert

    password: robet's password

你可能感兴趣的:(ubuntu)