Guide – How To Start – SFTP – OpenSSH FTP Server on Rocky 9

SFTP – OpenSSH FTP Server on Rocky 9 is a reliable and secure solution for transferring files over networks, offering advanced security features, versatile functionality, and scalability.

This is a quick deployment and ready-to-run image.

Simple and rapid installation. Easy to maintain.

Configuration and connection to the SFTP – OpenSSH FTP Server on Rocky 9

Connecting and managing server

  1. Run the VM through Azure Portal. To customize the Server, first, you need to know the server 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 “Public IP Address”).
  1. To manage with a server, you should connect to a VM.
    • 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 normal 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

  • 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. Examples of the basic FTP user management commands:

User creation – sudo addsftpuser

When creating a user, you must add and confirm a password for this user

  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 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/

Connecting to FTP using “FileZilla Client”

To connect to FTP, it is recommended to use the “FileZilla Client” application (you can download it from the link: https://filezilla-project.org/download.php?platform=win64).

When connecting to the FTP server, you need to follow these steps:

  1.  In the <Host> field, enter: sftp://ip_vm, where ip_vm is the VM IP address
  2. In the <Username> field, enter the login that was specified when creating the VM, or the username created in paragraph 3 of the previous section
  3. In the <Password> field, enter the password that was specified when creating the VM, or the user password created in paragraph 3 of the previous section
  4.  In the <Port> field, enter port 22
  5.  When the data is entered, press <Quickconnect>

After entering all the data and clicking on <Quickconnect>, you will successfully connect to the port.

Now you can work with this server.

Website Built with WordPress.com.

Up ↑