Server-tutorials.net
  • Home
  • CentOS
    • All
    • Backup
    • FTP
    • Game Hosting
    • Hosting Control Panel
    VestaCP Fix Webmail Roundcube File Not Found Error CentOS 8

    VestaCP Fix Webmail Roundcube File Not Found Error CentOS 8

    Installing ISPConfig on a Linux CentOS 8 Server: A Step-by-Step Guide

    Installing ISPConfig on a Linux CentOS 8 Server: A Step-by-Step Guide

    Which Hosting Control Panels are the easiest one

    Which Hosting Control Panels are the easiest one

    How to install SFTPGo on a CentOS 8 Server

    How to install SFTPGo on a CentOS 8 Server

    How to install SFTPGo on a CentOS 8 Server

    How to install SFTPGo on a CentOS 8 Server

    Build Your Own DDoS Protection With Linux & IPtables on Dedicated CentOS 8 Server

    Build Your Own DDoS Protection With Linux & IPtables on Dedicated CentOS 8 Server

    Setting Up Multiplayer Rust Game Hosting on a Linux CentOS 8 Server

    Setting Up Multiplayer Rust Game Hosting on a Linux CentOS 8 Server

    MacBook Pro inside gray room

    How to Host an OpenRA Game Server on a CentOS 8 Server

    How to Create a User for ProFTPD Server on CentOS 8

    How to Create a User for ProFTPD Server on CentOS 8

    yellow and blue data code displayed on screen

    Different ways to Backup your CentOS 8 Server

    Trending Tags

    • centos
  • Debian
    • All
    • Backup
    • FTP
    • Game Hosting
    • Hosting Control Panel
    • Network Monitoring
    a computer screen with a bunch of text on it

    How to install Wireshark on a Debian 11 Linux Server

    monitor showing Java programming

    Howto Back your Debian 11 Server with rsync

    black and white laptop computer

    How to install Wireshark on a Debian 12 Linux Server

    boy in front of computer monitor

    Installing ISPConfig on a Linux Debian 11 Server: A Step-by-Step Guide

    man programming using laptop

    Setting Up MongoDB on a Linux Debian 12 Server: A Step-by-Step Tutorial

    Secure mySQL Database from attackers on a Debian 11 Server

    Secure mySQL Database from attackers on a Debian 11 Server

    How to Setup and secure a mySQL cloud database installation on Debian 12 Server

    How to Setup and secure a mySQL cloud database installation on Debian 12 Server

    Install OpenNMS Network Monitoring System on Debian 18.04

    Install OpenNMS Network Monitoring System on Debian 18.04

    How to upgrade php7.2 to php7.4 in VestaCP on Debian 12 Server

    How to upgrade php7.2 to php7.4 in VestaCP on Debian 12 Server

    Debian 11 Nginx Performance Optimization

    Debian 11 Nginx Performance Optimization

    Trending Tags

    • debian
    • debian 10
  • Ubuntu
    • All
    • Backup
    • FTP
    • Game Hosting
    • Hosting Control Panel
    • Network Monitoring
    green and black digital device

    How to install and configure Plesk on Linux Ubuntu 18.04 Server

    laptop computer turn on

    How to Backup your Ubuntu 18.04 Server with rsync

    computer coding screengrab

    How to install and configure your linux Ubuntu 20.04 Server as your own VPN Server

    mixing console

    How to Disable Direct IP Access to your VestaCP Server Ubuntu 20.04 – Step-by-Step

    man sitting in front of the MacBook Pro

    How to Install and Configure a Proxy Server on Ubuntu 20.04 Server(squid)

    man programming using laptop

    How to Disable Direct IP Access to your VestaCP Server Ubuntu 18.04

    a person sitting at a desk with a laptop and a computer monitor

    How to install and configure cPanel on Ubuntu 20.04 Server

    How to Setup Zabbix Monitoring Tool on Ubuntu 20.04

    How to Setup Zabbix Monitoring Tool on Ubuntu 20.04

    Setting Up a Counter-Strike 2 Server on a Linux Ubuntu 20.04 Server

    Setting Up a Counter-Strike 2 Server on a Linux Ubuntu 20.04 Server

    How to install VestaCP on Ubuntu 22.04 with nginx

    How to install VestaCP on Ubuntu 22.04 with nginx

    Trending Tags

    • Ubuntu 20.04 LTS
    • Ubuntu 20.04
  • Other
    • All
    • Beginners
    • Tips & Tricks
    green and white lighted tunnel

    How do I recognize a ddos attack and take action against on linux Ubuntu Server

    black laptop computer on white textile

    Which Hosting Control Panels are free to use ?

    Which Hosting Control Panels are the easiest one

    Which Hosting Control Panels are the easiest one

    people sitting on chair in front of computer monitor

    Do I need a server or is a normal website enough?

    MacBook Pro with images of computer language codes

    Setting Up and Configuring a Freshly Installed Ubuntu 22.04 Server

    Basic Commands and Terminal Usage in Ubuntu

    Basic Commands and Terminal Usage in Ubuntu

    industry internet connection technology

    Understanding the Differences Between Nginx and Apache

    Free server network image

    How to Install ClickHouse on Ubuntu 22.04: A Step-by-Step Guide

    crop hacker typing on laptop with data on screen

    Choosing Between VPS and Dedicated Server: A Comprehensive Comparison

    unrecognizable hacker with smartphone typing on laptop at desk

    Choosing the Best Control Panel for Server Management: A Comprehensive Guide

    Trending Tags

    • php
  • Chat GPT
No Result
View All Result
Server-tutorials.net
Home Debian

How to Set Up a Secure FTP Server using vsftpd on Debian 12

Chris Thompson by Chris Thompson
October 11, 2023
in Debian, FTP
0

FTP (File Transfer Protocol) is a convenient way to transfer files over the internet, and vsftpd (Very Secure FTP Daemon) is a lightweight and secure FTP server for Unix-based systems. In this tutorial, we will guide you through the process of setting up a secure FTP server using vsftpd on Debian 12.

Prerequisites

Before you begin, make sure you have the following:

  1. Debian 12 Server: You should have a Debian 12 server or a virtual machine with root or sudo access.
  2. Terminal: You’ll be using the command line for most of the installation and configuration steps.

Step 1: Update Your System

To ensure that your system is up-to-date, open a terminal and run the following commands:

sudo apt update
sudo apt upgrade

This will update your package repositories and install any available updates.

Step 2: Install vsftpd

Debian includes vsftpd in its repositories, making it easy to install. Use the following command to install vsftpd:

sudo apt install vsftpd

Step 3: Configure vsftpd

After installing vsftpd, you need to configure it to enhance security. Open the configuration file in your preferred text editor:

sudo nano /etc/vsftpd.conf

Inside the configuration file, make the following changes:

  • Uncomment or add the following line to allow local users to log in:
  local_enable=YES
  • Uncomment or add the following line to prevent anonymous access:
  anonymous_enable=NO
  • Uncomment or add the following line to chroot local users to their home directories:
  chroot_local_user=YES
  • Enable passive mode by adding the following lines:
  pasv_enable=YES
  pasv_min_port=40000
  pasv_max_port=41000
  pasv_address=your_server_ip

Replace your_server_ip with your server’s actual IP address.

Save the configuration file and exit the text editor.

Step 4: Create FTP User Accounts

You can use existing Linux user accounts for FTP access. To add a user, run the following command, replacing username with your desired username:

sudo useradd -m -G users -s /sbin/nologin username

Set a password for the new user:

sudo passwd username

Step 5: Restart vsftpd

After configuring vsftpd and creating user accounts, restart the service to apply the changes:

sudo systemctl restart vsftpd

Step 6: Open FTP Ports in Firewall

If you have an active firewall, you need to allow FTP connections. Run the following commands to open the required ports:

sudo ufw allow 20/tcp
sudo ufw allow 21/tcp
sudo ufw allow 40000:41000/tcp

Step 7: Test Your FTP Server

You can now test your FTP server using an FTP client like FileZilla. Connect to your server using its IP address or domain name, the FTP username and password you created in Step 4, and port 21 for the control connection.

Conclusion

Congratulations! You’ve successfully set up a secure FTP server using vsftpd on Debian 12. This will allow you to securely transfer files to and from your server. Remember to regularly update your system and monitor your server’s security to keep your FTP server secure.

Tags: Debian 12Secure FTP Server using vsftpd on Debian 12vsftpd
Previous Post

Setting Up and Configuring Nginx with PHP-FPM on CentOS 8: A Step-by-Step Guide

Next Post

How to Perform a Version Upgrade from Debian 11 to Debian 12

Chris Thompson

Chris Thompson

My name is Chris Thompson, I work in the IT sector and am interested in Linux servers.

Next Post
How to Perform a Version Upgrade from Debian 11 to Debian 12

How to Perform a Version Upgrade from Debian 11 to Debian 12

Basic Commands and Terminal Usage in Ubuntu

Basic Commands and Terminal Usage in Ubuntu

How to Configure and Secure Apache on Ubuntu 22.04

How to Configure and Secure Apache on Ubuntu 22.04

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

I agree to the Terms & Conditions and Privacy Policy.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Categorys

  • AI Server Technology
  • Apache
  • CentOS
    • Backup
    • FTP
    • Game Hosting
    • Hosting Control Panel
      • cPanel
      • ISPConfig
      • Plesk
      • VestaCP
  • Crypto
  • Debian
    • Backup
    • FTP
    • Game Hosting
    • Hosting Control Panel
      • cPanel
      • ISPConfig
      • Plesk
      • VestaCP
    • Network Monitoring
  • Dedicated Server
    • Virtualization
  • Email
  • Laravel
  • MySQL
    • Backup
    • Cloud Database
    • MongoDB
    • Security
  • Nginx
  • Other
    • Beginners
    • Tips & Tricks
  • PHP
  • Security
    • Firewall
    • Proxy
  • Tor Hosting
  • Ubuntu
    • Backup
    • FTP
    • Game Hosting
    • Hosting Control Panel
      • cPanel
      • Plesk
      • VestaCP
    • Network Monitoring
  • VNC
  • VPN
  • Webhosting

Popular Posts

  • How to install WHM & CPanel on Ubuntu 20.04 LTS Linux

    How to install WHM & CPanel on Ubuntu 20.04 LTS Linux

    665 shares
    Share 266 Tweet 166
  • How to host a Tor .onion site on a Debian Server (nginx + tor)

    618 shares
    Share 247 Tweet 155
  • Ubuntu 20.04 LTS Nginx Performance Optimization

    608 shares
    Share 243 Tweet 152
  • How to upgrade php7.2 to php7.4 in VestaCP on Ubuntu ?

    603 shares
    Share 241 Tweet 151
  • How to use nginx as reverse proxy on ubuntu 20.04

    601 shares
    Share 240 Tweet 150

Recent Posts

green and black digital device

How to install and configure Plesk on Linux Ubuntu 18.04 Server

December 4, 2023
laptop computer turn on

How to Backup your Ubuntu 18.04 Server with rsync

December 4, 2023
a computer screen with a bunch of text on it

How to install Wireshark on a Debian 11 Linux Server

December 4, 2023

About Us

Server-tutorials.net - Linux Debian, Ubuntu, CentOS Server Tutorials.

Popular Tag

Apache apache2 Backup CentOS 7 centos 8 cloud database cpanel debian debian 11 Debian 12 Dedicated Server Dovecot Elasticsearch email server Encrypt FTP Server howto how to install Laravel lemp linux mariadb MongoDB MySQL nginx Openra Postfix proxy server roundcube rust multiplayer Security server SFTPGo tutorial ubuntu Ubuntu 18.04 Ubuntu 20.04 Ubuntu 22.04 vesta vestacp vnc vpn server vps vserver

Recent News

green and black digital device

How to install and configure Plesk on Linux Ubuntu 18.04 Server

December 4, 2023
laptop computer turn on

How to Backup your Ubuntu 18.04 Server with rsync

December 4, 2023
  • Cookie Policy
  • Privacy & Policy
  • Change privacy settings
  • Privacy settings history
  • Revoke consents
  • Contact
  • Imprint

© 2022 Server-tutorials.net - Linux Server Tutorials

No Result
View All Result
  • CentOS
    • Backup
    • FTP
    • Game Hosting
    • Hosting Control Panel
  • Debian
    • Backup
    • FTP
    • Game Hosting
    • Hosting Control Panel
    • Network Monitoring
  • Ubuntu
    • Backup
    • FTP
    • Game Hosting
    • Hosting Control Panel
      • Plesk
      • VestaCP
    • Network Monitoring
  • Email
  • Other
    • Beginners
  • Cookie Policy
  • Privacy Policy
  • Contact
  • Imprint

© 2022 Server-tutorials.net - Linux Server Tutorials