Создание ftp сервера на windows server 2019

Настройка будет состоять из пунктов:

  • Настройка Брандмауэра
  • Создание пользователей
  • Настройка FTP-сайта
  • Изоляция пользователей

Установка FTP-сервера

Для начала нужно установить FTP-сервер.

Открываем Пуск в нижнем левом углу, Диспетчер серверов (Server Manager), плитка которого закреплена по умолчанию. Далее все основные действия по настройке будем совершать здесь. 

Находим пункт Добавить Роль и Функции (Add roles and features).

Появится мастер добавления ролей, для продолжения нажимаем Далее (Next).

В качестве типа установки выбираем Базовая Роль или Базовая Функция (based-roles or feature-based installation).

Далее из списка серверов, выбираем нужный сервер, в качестве примера он один, поэтому жмём Далее (Next).

На этапе выбора ролей отмечаем роль Веб-сервер (IIS) (Web Server (IIS)).

Откроется окно и предложит установить Консоль управления службами IIS (IIS Management Console), жмем Добавить компоненты (Add Featues), они понадобятся, чтобы администрировать FTP-сервер, жмем Далее (Next).

Следующие 2 шага пропускаем, нажимая Далее (Next).

Дойдя до пункта Службы ролей (Role Services), снимаем все галочки и выбираем Служба FTP (FTP Service) и Консоль управления службами IIS (IIS Management Console), жмем Далее (Next).

На следующем пункте проверяем все компоненты и жмём Установить (Install).

Дожидаемся окончания установки, после чего жмём Закрыть (Close).

Далее ещё нужно настроить пару моментов, не торопитесь перезагружать сервер.

Настройка Брандмауэра

Для подключения к FTP-серверу необходимо настроить Firewall. Для этого откройте Брандмауэр Windows в режиме повышенной безопасности (Windows Firewall with Advanced Security).

В вертикальном меню слева выберите Правила для входящих подключений (Inbound rules), затем в вертикальном меню справа Создать правило (New Rule).

В открывшемся окне отмечаем тип Предопределенные (Predefined) и в выпадающем списке выберите FTP-сервер (FTP Server). Нажмите Далее (Next).

Отмечаем все галочки, Далее (Next), Готово (Finish). Перезагружаем сервер для применения всех настроек.

Создание пользователей

Теперь нужно создать пользователей, которым дадим право подключаться к FTP-серверу.

Открываем Управление компьютером (Computer Management).

Открываем пункт Локальные пользователи и группы (Local Users and Groups), щелкаем правой кнопкой мыши по пункту Пользователи (Users) и выбираем Новый пользователь (New User). Заполняем необходимые поля, снимаем все галочки и  жмем Создать (Create).

Если появилась следующая ошибка при создании пользователя, значит пароль не соответствует нужным требованиям:

Пароль должен соответствовать как минимум трём условиям из списка перечисленного ниже:

  • Наличие прописных букв английского алфавита от A до Z;
  • Наличие строчных букв английского алфавита от a до z;
  • Наличие десятичных цифр (от 0 до 9);
  • Наличие неалфавитных символов (например, !, $, #, %).

Настройка FTP-сайта

Открываем Диспетчер служб IIS (Internet Information Server (IIS) Manager).

В окне Подключения (Connections), кликаем правой кнопкой мыши по нашему сайту, выбираем Добавить FTP-сайт (Add FTP Site).

В открывшемся окне Добавить FTP-сайт (Add FTP Site) вводим название нашего FTP-сайта, указываем нужную директорию и жмём Далее (Next).

Далее указываем IP-адрес из выпадающего списка, или указываем Все свободные (All Unassigned). Отмечаем галочку ниже. Указываем настройки SSL, если нужно чтобы использовалось шифрование, устанавливаем SSL-сертификат, если нет, то выбираем первый вариант, как показано в примере. Жмём Далее (Next).

Выбираем проверку подлинности как Обычную (Basic). Из выпадающего списка выбираем Указанные пользователи (Specified users), и вводим имя ранее созданного пользователя. Ставим галочки напротив необходимых разрешений: Чтение (Read) или Запись (Write). Нажимаем Готово (Finish).

Изоляция пользователей

Чтобы после подключения к FTP-серверу пользователь попадал в свою директорию и не имел доступ к чужим файлам других пользователей, необходимо настроить их изоляцию. Для этого откройте настройки вашего ftp сайта и выберите Изоляция пользователей (FTP User Isolation).

Выберите Каталог имени пользователя (User name directory) и Примените (Apply).

Кликаем правой кнопкой мыши по нашему FTP-сайту, выбираем Добавить виртуальный каталог (Add Virtual Directory).

В первой строке указываем имя FTP-пользователя, ниже полный путь к директории пользователя. Её нужно создать заранее. Для понимания какая директория кому принадлежит, лучше создавать директорию с именем пользователя.

Необходимо настроить права на виртуальный каталог, кликаем правой кнопкой мыши по нему, выбираем Редактировать разрешения (Edit Permission).

Переходим во вкладку Безопасность (Security) и жмём кнопку Дополнительно (Advanced).

В окне жмём кнопку Отключение наследования (Disable inheritance), в новом окне выбираем первый вариант, затем Применить (Apply) и ОК.

Жмём кнопку Изменить (Edit).

Удаляем группу пользователей Users, и добавляем нового пользователя.

В новом окне, нужно ввести имя FTP-пользователя, для проверки нажмите Проверить имена (Check Names). Если пользователь есть, строка, где вводили имя, дополнится, нажмите ОК.

Даём все права пользователю на его директорию, отметив все галочки в первой колонке, жмём Применить (Apply)ОК.

На этом все настройки завершены. Чтобы подключиться к серверу, используйте следующие доступы:

  • Хост: IP сервера
  • Пользователь: FTP-пользователь, которого вы создали
  • Пароль: Пароль от FTP-пользователя

Подключиться можно через разное ПО, например FileZilla или, если вы используете Windows — Проводник, введя в адресной строке ftp://IP-сервера, после чего откроется окно для входа.

FTP-серверы широко используются для обмена файлами между клиентами и серверами. Если вы работаете в среде Windows Server 2019 и хотите установить и настроить FTP-сервер, то в этой статье мы покажем вам, как это сделать.

IIS FTP-сервер является одним из вариантов FTP-сервера, который можно установить на сервере Windows Server 2019 или 11 про. Он обеспечивает простоту управления и безопасность передачи файлов. Для установки и настройки IIS FTP-сервера на сервере Windows Server 2019 следуйте инструкциям ниже или в 11 дополнительные компоненты.

Шаг 1: Установите IIS

Первым шагом является установка IIS на сервере Windows Server 2019. Для этого необходимо открыть Server Manager и выбрать опцию «Add Roles and Features». Следуйте инструкциям мастера установки, чтобы установить IIS на сервере.

Для этого выполните следующие действия:

Выберите «Установка ролевых служб или функций» и нажмите «Далее». Выберите ваш сервер из пула серверов и нажмите «Далее».

Нажмите «Add Features» во всплывающем окне.

Нажмите «Далее» и затем «Установить», чтобы установить функцию FTP-сервера.

Шаг 2: Установите FTP-сервер

После установки IIS необходимо установить FTP-сервер. Чтобы это сделать, откройте Server Manager и выберите опцию «Add Roles and Features». В мастере установки выберите опцию «FTP Server», а затем выберите опцию «FTP Service».

После установки, перезагрузите сервер.

Шаг 3: Настройте FTP-сервер

После установки FTP-сервера необходимо настроить его. Для этого выполните следующие шаги:

Откройте Internet Information Services (IIS) Manager.

  • В окне IIS Manager слева у вас будет дерево серверов. Раскройте его, выберите свой сервер, затем выберите Sites, затем нажмите правой кнопкой мыши и выберите Add FTP Site….
  • Введите имя для вашего FTP-сайта, а также полный путь к папке, которую вы хотите сделать доступной через FTP. Нажмите Next.
  • В следующем окне укажите IP-адрес для FTP-сайта. Если вы хотите, чтобы сайт был доступен для всех IP, просто оставьте это поле пустым. Также можно указать порт (по умолчанию 21).
  • В секции SSL можно выбрать No SSL для простой настройки, но для продакшн-сервера лучше использовать SSL.
  • На следующем экране в секции Authentication and Authorization Information выберите Basic для Authentication, а для Authorization выберите «Specified users» и введите имя пользователя. Для Permissions выберите Read и Write. Нажмите Finish.

После успешного добавления можем увидить такой результат.

Шаг 4: Проверьте работу FTP-сервера

После настройки FTP-сервера необходимо проверить его работу. Мы можем это сделать через любимый браузер FileZilla. Но при подключении может возникнуть такая ситуация.

Ошибка «Не удалось получить список каталогов» часто связана с проблемами активного и пассивного режимов FTP. Но в нашем случае мы не открыли нужные порты в Брандмауере. Сделаем это.

Шаг 5: Настройте доступ через брандмауэр

Для FTP-сервера, вам нужно убедиться, что соответствующие порты открыты. Обычно FTP использует порт 21 для командного канала и порты 1024-65535 для пассивного режима. Вот как это можно сделать:

  • Откройте Control Panel. Выберите System and Security, затем Windows Defender Firewall.
  • Слева выберите Advanced settings. Это откроет окно Windows Defender Firewall with Advanced Security.
  • Здесь вы можете увидеть все входящие и исходящие правила, а также создать новые. Для создания нового правила выберите Inbound Rules слева, затем New Rule… справа.
  • В мастере создания нового правила выберите Port и нажмите Next.
  • Убедитесь, что выбрано TCP. В поле Specific local ports введите «21,1024-65535» и нажмите Next.
  • Выберите Allow the connection и нажмите Next.
  • Оставьте все три опции (Domain, Private, Public) отмеченными и нажмите Next.
  • Введите имя для правила, например, «FTP» и нажмите Finish.

Повторите процесс для исходящих правил. Теперь брандмауэр должен разрешить трафик через необходимые порты для вашего FTP-сервера.

Помните, что если у вас есть сторонний брандмауэр или аппаратный брандмауэр, вам может потребоваться настроить их отдельно.

После этого FTP-сервер будет доступен через брандмауэр.

Выводы

Установка и настройка IIS FTP-сервера на сервере Windows Server 2019 не является сложной задачей. Следуя инструкциям, приведенным выше, вы сможете быстро настроить FTP-сервер и обмениваться файлами между клиентами и сервером. Не забудьте также настроить доступ через брандмауэр, чтобы обеспечить безопасность передачи файлов.

FTP,  an acronym for File Transfer Protocol, is a standard protocol for sharing files over the internet or a simple LAN. FTP servers have existed for over 30 years and have facilitated file sharing in a simple, yet effective manner.

Nowadays, FTP has been replaced by more secure options, such as SFTP (Secure File Transfer Protocol) and FTPS (FTP over SSL), that encrypt data sent to and from the servers. Nonetheless, it’s prudent that we appreciate the basics of installing an FTP server and see how it can be configured for simple file sharing.

How to Install FTP Server on Windows Server 2019 image 1

In this guide, we take you through the installation and configuration of the FTP server on Windows Server 2019. There are two ways you can install the FTP server. You can use the Server Manager graphical tool, or use Windows Powershell if you enjoy working on the terminal. We will cover each of these in turn.

How to Install FTP Server using Server Manager

Server Manager is a graphical console that was introduced in Windows Server 2008. The objective was to help System Administrators easily install and manage various features and roles on the server. To install the  FTP server using Server Manager, follow the steps as illustrated.

Step 1: Launch Server Manager

Usually, the server manager utility launches automatically upon logging in. Alternatively, you can click on the ‘Start’ menu button and select ‘Server Manager’ from the pull-up menu that appears.

Once launched, click on the ‘Add roles and features’ option as shown.

How to Install FTP Server on Windows Server 2019 image 2

Step 2: Proceed with the installation

Clicking the  ‘Add roles and features’ option launches the installation wizard. The Wizard gives you a summary of the tasks you can perform such as adding/removing roles and features. You will be required to have a few prerequisites in order before proceeding.

Once you have gone over the summary, simply click ‘Next’.

How to Install FTP Server on Windows Server 2019 image 3

Step 3: Select the Installation Type

In the next step choose ‘Role-based or feature-based’ installation and click ‘Next’.

How to Install FTP Server on Windows Server 2019 image 4

Step 4: Select the Destination Server

You will thereafter be required to select the server upon which you will install the roles and features. By default, the server you are working on will be selected. Just accept the defaults and hit ‘Next’.

How to Install FTP Server on Windows Server 2019 image 5

Step 5: Select Server Roles to be Installed

In the next step, a list of server roles will be listed. Click on the ‘Web Server IIS’ option. 

How to Install FTP Server on Windows Server 2019 image 6

This launches a pop-up window that lists the roles to be installed as shown. 

Click on ‘Add features’  and hit the ‘Next’ button to proceed to the next step.

How to Install FTP Server on Windows Server 2019 image 7

Step 6: Select Server Features

Nothing much is required in this step, so once again, click on the ‘Next’ button.

How to Install FTP Server on Windows Server 2019 image 8

Step 7: Web IIS overview

The next step gives you a glance about what a web server is and the role it plays. So, once again, simply click ‘Next’ to proceed to the next step.

How to Install FTP Server on Windows Server 2019 image 9

Step 8: Select Role Services

This is the quintessential step where we shall select the FTP feature. Simply scroll and check off the ‘FTP Server’ checkbox and the corresponding FTP sub-options (FTP service and FTP extensibility). Then click ‘Next’.

How to Install FTP Server on Windows Server 2019 image 10

Step 9: Confirm Installation

Finally, you will be presented with a summary of the roles and features that you have selected to be installed. To confirm and initiate the installation process, click on the ‘Install’ button.

How to Install FTP Server on Windows Server 2019 image 11

The installation will take a while, so some patience will come in handy. Once the installation is complete, reboot your server for the roles and features to be fully enabled.

How to Install FTP Server on Windows Server 2019 image 12

As we mentioned, we can install FTP using Windows Powershell. All the steps that we have just gone through can be summarized in one single command on Windows  Powershell as follows: 

Install-WindowsFeature Web-FTP-Server -IncludeManagementTools

Step 10: Create and FTP directory

To this point, we have installed the FTP server feature on the system, and a root default directory is created to that effect. The path of the root directory is at C:\inetpub

We are going to create a custom FTP directory where we are going to place files and directories which can be accessed by authorized users across the network. 

Therefore, navigate to the  C:\inetpub path. Right click and select ‘New’ then ‘Folder’. Give the folder your preferred name. In this case, we have created a folder called myFTPdirectory.

How to Install FTP Server on Windows Server 2019 image 13

We need to assign this directory the required permissions so that an authorized user can read from its contents. To achieve this, right-click on the directory and select ‘Properties’.

How to Install FTP Server on Windows Server 2019 image 14

In the ‘Properties’ window pop-up, click on the ‘Security’ tab to adjust the permissions. Select the group which you want to allow access to the directory. In this case, I have selected the ‘Users’ group. Then click on the ‘Edit’ button to assign permissions to the group.

For our example, we clicked on ‘Full control’ and hit the ‘Apply’ button.

 Then click ‘Ok’. This takes you back to the Properties window where, once again, you will click on the ‘Ok’ button.

Step 11: Create an FTP Site

We have assigned all permissions on our FTP directory to the Users group. The next step will be to create an FTP site which we shall map to the FTP directory.

On the Server manager, click on ‘Tools’ then select ‘Internet Services Information (IIS) Manager’ option.

How to Install FTP Server on Windows Server 2019 image 17

On the IIS Manager window that appears, click the  server name at the left pane to reveal more options.  Right-click on the ‘Sites’ option and select ‘Add FTP site’.

How to Install FTP Server on Windows Server 2019 image 18

In the next step, provide the FTP site name and the Physical Path by clicking on the adjacent button with three dots and navigating to the FTP directory that we created in the previous step. 

How to Install FTP Server on Windows Server 2019 image 19

Then click ‘Ok’ then ‘Next’ to go to the next step.

In the ‘Binding and SSL settings’ step, provide your server’s IP address, FTP port. Be sure to select the -‘No SSL’ option since we are not using an SSL certificate to secure the site.

How to Install FTP Server on Windows Server 2019 image 20

The final step requires you to select the authentication type and configure which users will have access to the FTP site. Select ‘Basic’ authentication. 

Under authorization, click on the ‘Specified users’ option – if you want a single user to access the site – and right below that specify the username of the user.

 Alternatively, you can allow a group of users by selecting ‘Specified roles or user groups’ and specifying the user group in the ‘text field’ provided. Then check off ‘Read’ and ‘Write’ permissions and hit ‘Finish’.

How to Install FTP Server on Windows Server 2019 image 21

Up until this point, we have successfully configured  the FTP server. The only bit remaining is to configure the firewall to allow remote users to access the FTP site.

Step 12: Configure the Firewall

FTP listens on port 21, and therefore, we need to allow this port across the firewall. To start off, click on the ‘Start’  menu button and search for ‘Firewall with Advanced security

How to Install FTP Server on Windows Server 2019 image 22

On the left pane, click on ‘Inbound rules’ and the head over to the extreme right and click on ‘New rule’.

How to Install FTP Server on Windows Server 2019 image 23

On the ‘Rule Type’ window, select the ‘Predefined’ option and select ‘FTP server’ in the drop-down menu. Click ‘Next’.

How to Install FTP Server on Windows Server 2019 image 24

Ensure that all the firewall rules are checked off and click ‘Next’.

How to Install FTP Server on Windows Server 2019 image 25

Finally, click on ‘Allow the connection’ and click ‘Finish’.

How to Install FTP Server on Windows Server 2019 image 26

Our FTP server can now be accessed remotely from either a Windows or Linux/UNIX system. The only thing remaining is to test if we can make a connection to the server.

Step 13: Test FTP server

To test if your FTP server is working as expected, head over to a remote system and launch command prompt. Next, type the command below:

ftp server-ip

You will be required to authenticate, so provide your username and password. 

How to Install FTP Server on Windows Server 2019 image 27

The output above confirms that we have been able to successfully log in. 

Let’s try something more ambitious. We are going to create a directory and navigate into it using the commands shown:

ftp> mkdir reports
ftp> cd reports

How to Install FTP Server on Windows Server 2019 image 28

To verify the existence of the directory, use the ls command , just as you would in a Linux system when listing files.

ftp> ls

How to Install FTP Server on Windows Server 2019 image 29

Alternatively, You can head over to your browser and head over to the URL shown:

ftp://server-ip

In the authentication pop-up, provide your username and password and click on the ‘Sign In’ button.

How to Install FTP Server on Windows Server 2019 image 30

And voila! There goes your directory!

How to Install FTP Server on Windows Server 2019 image 31

This confirms that our FTP server is working as expected.

Conclusion

This brings to an end our topic today. We have successfully installed and configured FTP server on Windows Server 2019. An FTP server provides a convenient way of hosting and sharing files and directories across a network to specific users or groups of users in Active directory.

However, as we pointed out earlier, FTP is now considered unsafe and extra steps are needed to secure it using an SSL certificate to keep malicious users from eavesdropping on the communication between the FTP server and the client PC. Let us know your thoughts in the comments. Enjoy!

Configuring an FTP server on Windows Server 2019 consists of several stages. First, you need to install the server itself, then create and isolate users, configure a firewall, and establish an FTP connection. This guide will explain all the steps in detail.

First, let’s quickly remember what an FTP server is. It is only the first part of the infrastructure that allows data to be transferred between hosts. The second part is the client. A connection is established between them that uses the File Transfer Protocol.

The main advantage of this connection is that it is cross-platform. However, there are many disadvantages: the file sharing is not very fast, and there are security issues. Despite all that, the protocol is still widely used.

Install FTP server

To continue with this guide, you need a host with Windows Server 2019 installed and configured. 

To install an FTP server:

  1. Open the Start menu and launch Server Manager. You will configure the basic settings through this utility.

  2. Click Add roles and features.

  3. The Add Roles and Features Wizard will launch. Click Next.

  4. Select the Role-based or feature-based installation option and click Next.

  5. In the next window, select the default server; this is the server where roles should be installed.

  6. Check the role Web Server (IIS).

  7. In the next window, click Add features.

  8. Skip the next two steps by clicking Next; nothing needs to be changed.

  9. In Role Services select FTP Service and IIS Management Console.

  10.  Check the list of components ready for installation and click Install.

After installation is complete, close the wizard window.

Firewall setup

To configure a firewall that protects an FTP server on Windows, go to the Tools menu in the Server Manager top right and run Windows Defender Firewall with Advanced Security

  1. In the left menu, go to Inbound rules.

  2. In the right menu, select New rule.

  3. In the rule settings, select the Predefined type and the FTP server value.

  4. Select all the options, click Next, and then Finish.

To apply the new configuration, reboot the server.

User management

One of the protocol’s main problems is its low level of security. Therefore, you need to be very strict about the list of users who can connect to the server. For this purpose, groups or individual users are configured.

  1. Go to the Tools menu in the Server Manager and select Computer Management.

  2. Go to Local Users and Groups.

  3. Right-click the context menu of the Users item and proceed to create a new account.

  4. Enter your username and password. Select your account settings. For example, you can enable a requirement to change your password the first time you connect. Or vice versa, prohibit changing passwords.

For the system to accept a password, it must meet at least three of the four following security requirements:

  • Have lowercase Latin letters.

  • Have uppercase Latin letters.

  • Have numbers.

  • Have special characters like !, $, #, %.

Adding a site

For further work, we need to add an FTP site. After creating users, we return to the Server Manager. All Windows FTP server setup will take place here. 

  1. Go to the Tools and launch the Internet Information Services Manager tool.

  2. In the Connections section, double-click the sever and select Add FTP Site.

  3. Enter the site name and select the folder with its content.

  4. Specify the IP address to connect or set the mode to All Unassigned.

  5. Configure SSL settings. You can choose not to use encryption or enable it and add your own certificate. Click Next.

  6. Select Basic authentication. Grant authorization permission to Specified Users.

  7. Enter the name of the created account.

  8. Grant the read and write permissions.

  9. Click Finish.

Directory Isolation

In one of the previous steps, we showed how to create users which can connect to the server. However, more is needed to provide even minimal security. Another critical point is isolation.

Let’s say we are setting up a server for a television company. The company needs to share videos between departments: the camera operators upload the footage, the editors edit it, and the correspondents watch it.

Isolation allows you to ensure that each type of user has access only to specific directories.

We have an FTP site. Let’s go to the settings and restrict availability zones between different accounts.

  1. Go to the Tools and launch the Internet Information Services Manager tool.

  2. Right-click on your FTP site and select FTP User Isolation.

  3. Select User name directory and click Apply.

  4. Right-click on the FTP site and add a virtual directory.

  5. Enter your login and, in the line below, the full path to the folder this account can use.The directory should already exist. We recommend using the login in the directory name to make it easier to figure out who can go where.

We have one virtual directory. Let’s change access permissions.

  1. Right-click on our new virtual directory and go to editing permissions.

  2. Open the Security tab and click Advanced.

  3. Disable inheritance and save changes.

  4. Return to the Security options.

  5. Click Edit under the list of groups/users.

  6. Remove the Users group and add a new user.

  7. Enter the FTP user name and run name checking.

  8. Click OK to save your changes.

  9. Select the new user, check all the permission checkboxes in the Allow column, and click Apply.

The configuration of the FTP server for Windows is complete.

Connection via FTP

We figured out how to create an FTP server on Windows Server 2019 and set up user accounts. Finally, let’s see how to connect to our file storage.

A client is required to establish a connection. One of the most popular is FileZilla. You can also use WinSCP.

To connect, you will need:

  • The server IP address.

  • Name and password for the created account.

After establishing the connection, the user will see the directory you specified in the site settings. If you have configured directory isolation, the user will go to the virtual directory and cannot move to other people’s folders.

FTP – протокол передачи файлов

Как администратор веб-сайта или разработчик, вам, безусловно, потребуется FTP для передачи файлов между компьютерами через соединения TCP/IP. В этой статье покажу все необходимые шаги для установки FTP-сервера в Windows Server. Настройка FTP-сервера предоставляет закрытое и быстрое окружение, в котором у вас полный контроль над количеством и типом данных, которые вы сохраняете и передаете. Кроме того, нет ограничений по размеру файла, поэтому вы можете отправлять что угодно, от небольшого текстового файла до резервной копии ПК размером 1000 ГБ.

Давайте пройдемся по шагам этой статьи, чтобы узнать, как установить и настроить FTP-сервер на Windows Server. Процесс установки FTP-сервера в Windows не является сложным, но длительный.

Если вы рассматриваете возможность установки и настройки FTP-сервера на своем сервере под управлением Windows, эта инструкция окажет вам существенную помощь. Нижеследующие шаги поясняют, как установить FTP-сервер в Windows Server 2019 и Windows Server 2022.

Шаг 1. Установите FTP-сервер на сервере Windows

Для начала установки необходимо открыть Менеджер сервера. Нажмите клавишу Windows и выполните поиск Server Manager:

Откройте раздел Add roles and features.

В открывшемся мастере нажмите Next.

Как только вы увидите страницу “Select Installation type”, выберите “Role-based or feature-based-installation” и затем нажмите Next.

На странице “Select destination” выберите сервер, на который вы хотите добавить службы. Затем нажмите Next.

На странице выбора ролей сервера выберите опцию “Web Server (IIS)”.

После появления окна, выполните нажатие на “Add Features“. Затем нажмите Next.

Когда появится консоль “Select features”, нажмите Next, так как вам не нужны дополнительные функции.

Аналогично предыдущему шагу, нажмите Next в Мастере ролей Web Server (IIS).

Установка FTP-сервера в Windows 2019/2022 уже близко:

Установите флажок напротив “FTP Server” и “FTP Service”. Затем нажмите Next.

На экране “Confirm installation selections” выберите Install.

После того как сервер завершит процесс установки, нажмите Close.

Для выполнения указанных выше шагов с использованием команды в PowerShell введите:

# Install-WindowsFeature Web-FTP-Server -IncludeManagementTools


Шаг 2. Настройте пассивный режим для вашего FTP-сервера

Теперь, после успешной установки FTP-сервера на Windows Server, вы готовы к настройке FTP на Windows Server 2019/2022.

Чтобы настроить ваш FTP-сервер в пассивном режиме, выполните следующие инструкции:

  • Откройте дашборд Server Manager.
  • Нажмите Tools.
  • Выберете Interner Information Services(IIS) Manager.

После открытия окна, выберите ваш сервер. Затем нажмите на FTP Firewall Support.

Дважды щелкните “FTP Firewall Support” или нажмите “Open Feature” в правой панели:

Укажите диапазон портов для канала передачи данных. Затем нажмите Apply.

После появления всплывающего окна, нажмите “OK”. Вас попросят разрешить использование диапазона портов, который вы сконфигурировали в брандмауэре.


Шаг 3. Перезапустите службу FTP

Для того чтобы изменения вступили в силу, необходимо перезапустить новую службу Microsoft FTP. Для этого следуйте по указанному пути:

  • Откройте дашборд Server Manager.
  • Нажмите Tools.
  • Выберете Services.

Выполните щелчок правой кнопкой мыши на службе Microsoft FTP. Затем нажмите Restart.


Шаг 4. Добавьте порты в брандмауэре

В заключительном шаге вам нужно открыть порт в брандмауэре Windows.

Создайте входящее правило для разрешения пассивных портов, которые вы установили, а также порта 21 для службы FTP.

Как вы, возможно, уже отметили, оптимальный метод передачи файлов и конфиденциальных данных между сервером и клиентом – это использование FTP-сервера. Теперь, у вас есть свой FTP-сервер, который можно использовать для создания резервного сервера и защиты важной информации, включая данные, файлы, программы и базы данных.

Заключение

В этой статье вы узнали, как установить FTP-сервер в Windows. С использованием этого руководства вы сможете настроить FTP-сервер на своей операционной системе Windows Server для удаленного доступа к вашим файлам. Теперь у вас есть возможность создать и управлять собственным частным FTP-сервером без использования сторонних программ.

Понравилась статья? Поделить с друзьями:
0 0 голоса
Рейтинг статьи
Подписаться
Уведомить о
guest

0 комментариев
Старые
Новые Популярные
Межтекстовые Отзывы
Посмотреть все комментарии
  • Восстановление windows 10 через bios без флешки
  • Twrp installer для windows
  • Gta sa требует directx 9 windows 10
  • Не запускается lineage 2 4game на windows 10
  • Аналог rdp сервер для windows