GNU/Linux >> Znalost Linux >  >> Ubuntu

Ubuntu – nelze se připojit k FTP v pasivním režimu?

Snažím se připojit k ftp, který jsem právě nakonfiguroval, ale pomocí FileZilla dostávám následující protokoly

Status: Connecting to x.x.x.x:21...
Status: Connection established, waiting for welcome message...
Response:   220 (vsFTPd 2.3.5)
Command:    USER huntsnap
Response:   331 Please specify the password.
Command:    PASS ********
Response:   230 Login successful.
Command:    OPTS UTF8 ON
Response:   200 Always in UTF8 mode.
Status: Connected
Status: Retrieving directory listing...
Command:    PWD
Response:   257 "/home/my/home/dir"
Command:    TYPE I
Response:   200 Switching to Binary mode.
Command:    PASV
Response:   227 Entering Passive Mode (10,38,106,212,248,2).
Status: Server sent passive reply with unroutable address. Using server address instead.
Command:    LIST
Error:  Connection timed out
Error:  Failed to retrieve directory listing

Nakonfiguroval jsem vsftpd na serveru Ubuntu a nevím, co je na něm špatného.

Soubor vsftp.conf

listen=YES
anonymous_enable=NO
local_enable=YES
write_enable=YES
local_umask=022
dirmessage_enable=YES
use_localtime=YES
xferlog_enable=YES
secure_chroot_dir=/var/run/vsftpd/empty
pam_service_name=ftp
rsa_cert_file=/etc/ssl/private/vsftpd.pem
userlist_file=/etc/vsftpd.userlist
userlist_enable=YES
userlist_deny=NO
local_root=/home/to/my/home/
dirlist_enable=YES
download_enable=YES

Přijatá odpověď:

Existuje mnoho odpovědí na tento problém:

  • http://sumantjsr.blogspot.hu/2011/12/fix-for-sent-passive-reply-with_5945.html
  • http://ubuntuforums.org/showthread.php?t=1943301

Ubuntu
  1. Nelze použít příkaz „pip Install Scp“ v Ubuntu 12.04?

  2. Nelze spustit uiautomatorviewer na Ubuntu

  3. Jak zakázat pasivní režim v příkazu linux ftp

  1. Příkaz Ubuntu Runuser?

  2. Instalace Ubuntu 12.04.02 v režimu Uefi?

  3. Instalace Cuda 8 na Ubuntu 16:Nelze najít balíček Cuda?

  1. Konfigurace ZFS na Ubuntu 20.04

  2. Instalace Ubuntu 20.04 Zoom

  3. Jak odstranit uživatele na Ubuntu