


Enable autostart vsftpd service and Restart FTP Serverġ0. Change owner of FTP Root directory for ftp userĬhown -R ftp:ftp /home/ftproot/ 9. #rsa_private_key_file=/etc/ssl/private/vsftpd.key #rsa_cert_file=/etc/ssl/private/vsftpd.crt Rsa_cert_file=/etc/ssl/private/vsftpd.pem #chroot_list_file=/etc/vsftpd.chroot_list #banned_email_file=/etc/vsftpd.banned_emails Remove or backup original vsFTPD config and create new config Create or Change PAM for vsftpd.virtualĪuth required pam_userdb.so db=/etc/vsftpd/virtualusersĪccount required pam_userdb.so db=/etc/vsftpd/virtualusersĦ. Example for ftp_user.txtĭb_load -T -t hash -f /etc/vsftpd/ftp_users.txt /etc/vsftpd/virtualusers.dbĥ. First line as username and second line is password, following by another users. User database text should be delimiter by “\n”. server FQDN or YOUR name) : Įmail Address : Create configuration directory and files for FTP user database Organizational Unit Name (eg, section) : GSMĬommon Name (e.g. Organization Name (eg, company) : True Digital Plus State or Province Name (full name) : DKI Jakarta Openssl req -x509 -nodes -days 720 -newkey rsa:1024 -keyout /etc/ssl/private/vsftpd.pem -out /etc/ssl/private/vsftpd.pemĬhange red-colod depend on your country, company name, email and your company email. Create TLS (SSL Certificate) for TLS Connection Kemudian Konfigurasi terlebih dahulu untuk IP Servernya dengan mengetikkan perintah nano /etc/network/interfaces 3.

Install Required PackageĪpt-get install vsftpd 2. Buka OS Debian di VirtualBox, kemudian login dengan menggunakan user Root 2. For this tutorial, im using vim as my text editor, you can use nano or another text editor (depend what you are prefer or familiar with you).įor server IP address, for this tutorial example im using my server private IP Address as 192.168.10.110, you can use your server public IP or host.
