Skip to content

Instantly share code, notes, and snippets.

@tbotalla
Created March 4, 2019 19:00
Show Gist options
  • Select an option

  • Save tbotalla/3b2eff33014e730a652f2261fe687624 to your computer and use it in GitHub Desktop.

Select an option

Save tbotalla/3b2eff33014e730a652f2261fe687624 to your computer and use it in GitHub Desktop.

Revisions

  1. tbotalla created this gist Mar 4, 2019.
    30 changes: 30 additions & 0 deletions ftp-server-configuration.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,30 @@
    yum install vsftpd ftp -y

    vi /etc/vsftpd/vsftpd.conf

    [...]
    ## Disable anonymous login ##
    anonymous_enable=NO

    ## Uncomment ##
    ascii_upload_enable=YES
    ascii_download_enable=YES

    ## Uncomment - Enter your Welcome message - This is optional ##
    ftpd_banner=Welcome to MISERVIDOR FTP service.

    ## Add at the end of this file ##
    use_localtime=YES
    [...]

    systemctl enable vsftpd # O bien service vsftpd start
    systemctl start vsftpd

    # Si falla verificar si hay otro servidor ftp corriendo:
    chkconfig --list | grep ftp
    # Si hay otro, como por ejemplo proftpd pararlo con service proftpd stop y volver a iniciar el vsftpd

    # Por default no deja conectarse por ftp con usuario root, crear un usuario especifico para esto
    useradd ftp_user
    passwd ftp_user