Usage Guidelines – Debian 10 Minimal with FTP Server

FTP Server

Debian 10 Minimal

The guide on how to work Debian 10 Minimal with FTP Server

  1. To connect to a VM, you need the PuTTY application to connect via SSH. You can download it at the following link – Download
  2. Run Putty, enter the VM address in the “Host” field, and click “Open” to connect.
  1. In the window that appears, click Accept.
  1. Enter the username and password that were used to create the virtual machine.

(If you enter a password, it will not be displayed.)

  1. To create a new user, use the command

      sudo useradd -m username

                 Where username is the name that the user comes up with

  1. To create a password, use the command

sudo passwd username

Where username is the FTP user created in the previous step

Important: When entering a password for security reasons, it will not be displayed, also password has to be a maximum of 8 characters. If you enter a password with more than 8 characters, it will be shortened. While entering a password in the FTP client, only the first 8 characters will be taken.

  1. Then you need to enter a command in the console that opens the configuration file:

            sudo nano /etc/vsftpd.conf

            And add the following information there

pasv_enable=YES

pasv_address=xxx.xxx.xxx.xxx

pasv_min_port=YYYYY

pasv_max_port=YYYYY

where xxx.xxx.xxx.xxx The public IP address of this machine.

YYYYY – Unprivileged ports (Must be allowed in the VM security group).

  1. In order to save the information, you must press Ctrl + X, then Enter.
  1. Now for further connection, you need to install “FileZilla Client”

You can download it from the link: https://filezilla-project.org/download.php?platform=win64

  1. In the “Host” field, enter the IP of your VM

In the “Username” and “Password” fields, enter the data that you entered when creating a new user (see paragraph 7)

In the “Port” field, enter 22

And click “Quickconnect

  1. The examples of the basic ftp user management commands that can be entered after connecting to the PuTTY client: 

The changing of the password for an existing user:

sudo passwd username

The deletion of the user:

sudo userdel username

The blocking of user account: (works only for password login)

sudo usermod -L username

The unblocking of user account:(works only for password login)

sudo usermod -U username