После авторизации на сервере могу перемещаться по каталогам и создавать их, но при попытке узнать содержимое, сервер разрывает соединение. Пример:
Connected to localhost.
220 (vsFTPd 3.0.3)
Name (localhost:ilya): ilya
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> cd etc/ftp
250 Directory successfully changed.
ftp> pwd
257 "/home/ilya/etc/ftp" is the current directory
ftp> ls
200 PORT command successful. Consider using PASV.
421 Service not available, remote server has closed connection
ftp>
Конфиг
anonymous_enable=NO
local_enable=YES
write_enable=YES
dirmessage_enable=YES
xferlog_enable=YES
connect_from_port_20=YES
listen=YES
pam_service_name=vsftpd
local_umask=0666
userlist_enable=YES
userlist_file=/etc/vsftpd.user_list
userlist_deny=NO
Вывод FIleZilla
Статус: Соединяюсь с 127.0.0.1:21...
Статус: Соединение установлено, ожидание приглашения...
Статус: Небезопасный сервер, не поддерживает FTP через TLS.
Статус: Авторизовались
Статус: Получение списка каталогов...
Команда: PWD
Ответ: 257 "/home/ilya" is the current directory
Команда: TYPE I
Ответ: 200 Switching to Binary mode.
Команда: PASV
Ответ: 227 Entering Passive Mode (127,0,0,1,94,187).
Команда: LIST
Ошибка: Could not read from transfer socket: ECONNRESET - Соединение сброшено сервером
Ошибка: Соединение закрыто сервером
Ошибка: Не удалось получить список каталогов
логи
Mon Feb 22 18:42:19 2021 [pid 1] [ilya] OK LOGIN: Client "127.0.0.1"
Mon Feb 22 18:42:47 2021 [pid 3] [ilya] OK MKDIR: Client "127.0.0.1", "/home/ilya/etc/ftp/files"
Mon Feb 22 18:43:31 2021 [pid 2] CONNECT: Client "127.0.0.1"
Mon Feb 22 18:43:35 2021 [pid 1] [ilya] OK LOGIN: Client "127.0.0.1"
Mon Feb 22 18:43:35 2021 [pid 2] CONNECT: Client "127.0.0.1"
Mon Feb 22 18:43:35 2021 [pid 1] [ilya] OK LOGIN: Client "127.0.0.1"
Mon Feb 22 18:48:04 2021 [pid 2] CONNECT: Client "127.0.0.1"
Mon Feb 22 18:48:09 2021 [pid 1] [ilya] OK LOGIN: Client "127.0.0.1"
Mon Feb 22 18:49:19 2021 [pid 2] CONNECT: Client "127.0.0.1"
Mon Feb 22 18:49:19 2021 [pid 1] [ilya] OK LOGIN: Client "127.0.0.1"
Mon Feb 22 18:49:19 2021 [pid 2] CONNECT: Client "127.0.0.1"
Mon Feb 22 18:49:19 2021 [pid 1] [ilya] OK LOGIN: Client "127.0.0.1"
Mon Feb 22 18:49:21 2021 [pid 2] CONNECT: Client "127.0.0.1"
Mon Feb 22 18:49:21 2021 [pid 1] [ilya] OK LOGIN: Client "127.0.0.1"
Mon Feb 22 18:49:22 2021 [pid 2] CONNECT: Client "127.0.0.1"
Mon Feb 22 18:49:22 2021 [pid 1] [ilya] OK LOGIN: Client "127.0.0.1"
Mon Feb 22 18:49:23 2021 [pid 2] CONNECT: Client "127.0.0.1"
Mon Feb 22 18:49:23 2021 [pid 1] [ilya] OK LOGIN: Client "127.0.0.1"
Mon Feb 22 18:49:23 2021 [pid 2] CONNECT: Client "127.0.0.1"
Mon Feb 22 18:49:23 2021 [pid 1] [ilya] OK LOGIN: Client "127.0.0.1"
Mon Feb 22 18:49:42 2021 [pid 2] CONNECT: Client "127.0.0.1"
Mon Feb 22 18:49:48 2021 [pid 1] [ilya] OK LOGIN: Client "127.0.0.1"
Mon Feb 22 18:50:20 2021 [pid 2] CONNECT: Client "127.0.0.1"
Mon Feb 22 18:50:20 2021 [pid 2] CONNECT: Client "127.0.0.1"
Mon Feb 22 18:50:27 2021 [pid 1] [ilya] OK LOGIN: Client "127.0.0.1"
Mon Feb 22 18:50:35 2021 [pid 2] CONNECT: Client "127.0.0.1"
Mon Feb 22 18:50:35 2021 [pid 2] CONNECT: Client "127.0.0.1"
Mon Feb 22 18:50:37 2021 [pid 1] [ilya] OK LOGIN: Client "127.0.0.1"
Mon Feb 22 18:59:57 2021 [pid 2] CONNECT: Client "127.0.0.1"
Mon Feb 22 19:00:01 2021 [pid 1] [ilya] OK LOGIN: Client "127.0.0.1"