The guide how to use FTP Server on CentOS Stream
- To work, you must open port 20, 21, 60000-65535 (TCP) in the network properties in the Amazon firewall.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 with the server, you should connect to it via PuTTY (Download PuTTY)
- Go to the home page of “Session”, enter the IP address of the VM
- Go to section SSH on the left panel, and then in Auth. In the Auth section, click Browse and specify the path to the .ppk file you received earlier.
- In the console that opens, you must enter the standard login that appears when creating a virtual machine – centos.
- To create a new user, enter sudo useradd -m username, where username is your chosen name.
To create a password, enter sudo passwd username, where username is the user created in the previous step.
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.
- Install “FileZilla Client” for further connection
You can download it from the link: Download FileZilla Client for Windows (64bit x86)
- Run “FileZilla Client”, enter the VM address, port, username and password that were specified when creating the virtual machine
Click “Quickonnect”
- Welcome to the remote site
You have successfully connected to the server and can work with this service.
The examples of the basic ftp user management commands that can be entered after connecting in the PuTTY client:
To create a new user enter: sudo useradd -m username, where username is a name of the new user
The changing of the password for an existing user: sudo passwd username
The deletion of 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