Guide – How To Start – FTP Server on Ubuntu 22.04

Whether you’re transferring sensitive data or large files, or just need a reliable and efficient file transfer solution, the FTP Server on Ubuntu 21.04 is the answer

This is a quick deployment and ready-to-run image.
Simple and rapid installation. Easy to maintain.

Connection to FTP Server on Ubuntu 22.04 

To start the server, run the VM through Azure Portal.

  1. For the connection to the server, you should know the IP address of the VM. You can find it in the personal account of Azure. You need to select the virtual machine from the list. By clicking the item “Overview”, your IP is displayed in the line “Public IP Address”.
  1. To work, you should open ports 20, 21, 22, 50000-51000 TCP in the network properties in the Azure firewall.
  1. To manage with an FTP server, you should connect to a VM.
    1. With OpenSSH

In the Windows 10 operating system (starting with version 1809), an OpenSSH client is available, with which you can connect to Linux servers via SSH. If Windows 10 is suitable and the OpenSSH client is installed, you can start connecting via SSH. To do this, launch a standard Windows command prompt and enter the command “ssh user@*vm_ip*” (1), where “user” is the username that was specified while creating the virtual machine and “*vm_ip*” is the VM IP address.

Then type “Yes” (2) and enter a password (3) that was specified while creating the virtual machine.

  1. With the PuTTY application 

To do this, you need the PuTTY application to connect via ssh. You can download it at the following link – Download

Run Putty, enter the VM address in the “Host” field (1) and click “Open” (2) to connect.

In the opened console, you will need to enter a username (1) and password (2) that were specified while the VM was being created (you’ll not see the password in the console while entering it). 

  1. To create a new user, use the command

            sudo useradd -m username

Where username is the name 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 purposes, it will not be displayed, also the 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.

To change the password for an existing user:

sudo passwd username

To delete existing user:

sudo userdel username

To block user account (works only for password login):

sudo usermod -L username

To unblock user account (works only for password login):

sudo usermod -U username

  1. To connect to FTP, it is recommended to use the “FileZilla Client” application (you can download it from the link: Download FileZilla Client for Windows (64bit x86)).
  1. When connecting to the FTP server, you need to follow these steps:
  1. In the field Host, enter the VM IP address
  2. In the field Username, enter the login from paragraph 4
  3. In the field Password, enter the password from paragraph 5
  4. When the data is entered, press Quickconnect

After entering all the data and clicking on Quickconnect, you will successfully connect to the server. You can use the folder files to upload and download files

Now you can work with your own FTP server

Website Built with WordPress.com.

Up ↑