Guide – How To Start – Secured FTP (SFTP) Server on Linux CentOS Stream 8 on Amazon

The guide how to connect to Secure FTP Server on CentOS 8.2

To connect to the VM, you should generate a “Private Key” in advance. This can be done using the following instruction (by choosing the “file format:” option “.ppk” in point 3)

Guide – How To – Create and use Key Pair to connect to a VM

  1. Go to the SSH section in the left panel and then to Auth.
  1. In the “Auth” section, click “Browse” and specify the path to the .ppk file you received earlier.
  1. Go to the home page of “Session”, enter the IP address of the VM and click “Open”.
  1. In the opened console you will need to enter the login centos
  1. The creation of the user: sudo addsftpuser 

Attention: 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.

  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). When launched, the application looks like this:
  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 p. 5)

When the data is entered click on “Quickconnect”.

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

The changing of the password for an existing user: sudo passwd username

The deletion of user: sudo delsftpuser

The blocking of user account: sudo usermod -L username

The unblocking of user account: sudo usermod -U username

You can find a directory with users along the path: /sftp/data/home/

The ftp server itself is protected and ssh access and shell access are prohibited for ftp users, but allow for the superuser.

Use your own Secured FTP (SFTP) Server on Linux CentOS Stream 8

Website Built with WordPress.com.

Up ↑

%d bloggers like this: