Pure-FTPd
Linux Centos 7.9
TABLE OF CONTENTS:
The guide how to connect to Linux CentOS 7.9 with Pure-FTPd Server
- After purchasing and starting the VM, you should know its IP address. 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 of “Public IP Address”).
- To work, you must open the following ports:
21(TCP), 22(TCP), 30000-50000(TCP) - To connect to a VM, 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, and click “Open” to connect.
- In the opened console you should enter a username and password that were specified when creating the virtual machine.
- Use a self-signed certificate along the path:
/etc/ssl/private/pure-ftpd.pem
- Create a directory by
sudo mkdir /etc/ftproot
command - Create a user by
sudo pure-pw useradd usertest -u 1500 -g 1500 -d /etc/ftproot/
command where usertest is the name - Enter a password and confirm it
- Apply the changes by
sudo pure-pw mkdb
command - To view the users list, use
sudo pure-pw list
command - To delete a username, use
sudo pure-pw userdel username
command - To create a username with a separate catalogue, you can sequentially use the following commands:
sudo pure-pw useradd username -u 1500 -g 1500 -d /etc/ftproot/username
2) mkdir /etc/ftproot/username
3 ) chown 1500:1500 /etc/ftproot/username
4 ) sudo pure-pw mkdb
Client FTP Software
Users can use any FTP Client to allow clients to connect. One of the best solutions is to choose FileZilla’s FTP Client.
In the host field you should insert ftpes://YourVM’sIP
And your username and password
After starting the connection, a window with a certificate will appear, there you must check the box <Always trust certificate> and click <OK>.