wget が FTP サーバーから匿名でログインするときに停止する

wget が FTP サーバーから匿名でログインするときに停止する

ファイルをダウンロードしようとしていますftp://ftp.perforce.comwget を使用します。次のコマンドを使用します:

wget -t 3 --timeout=10ftp://ftp.perforce//ファイルのパス

次のような出力が得られます。

[xxxx@xxxxxx~]$ wget -t 3 --timeout=10 ftp://ftp.perforce.com/r20.1                                     /bin.linux26x86_64/p4api-glibc2.12-openssl1.0.2.tgz
   --2021-07-17 10:21:10--  ftp://ftp.perforce.com/r20.1/bin.linux26x86_64/p4api-gl                                     
    ibc2.12-openssl1.0.2.tgz
               => ‘p4api-glibc2.12-openssl1.0.2.tgz.1’
Resolving ftp.perforce.com (ftp.perforce.com)... 54.177.106.77
Connecting to ftp.perforce.com (ftp.perforce.com)|54.177.106.77|:21... connected                       .
Logging in as anonymous ...
Error in server response, closing control connection.
Retrying.

タイムアウトを増やしても効果はありません。 nmap を使用してアドレス + ポート 21 を ping すると、次の出力が得られます。

[xxx@xxxx~]$ nmap -p 21 ftp.perforce.com
Starting Nmap 6.40 ( http://nmap.org ) at 2021-07-17 10:24 CEST
Nmap scan report for ftp.perforce.com (54.177.106.77)
Host is up (0.15s latency).
rDNS record for 54.177.106.77: ec2-54-177-106-77.us-west-1.compute.amazonaws.com
PORT   STATE SERVICE
21/tcp open  ftp
Nmap done: 1 IP address (1 host up) scanned in 0.67 seconds

RHEL 7.9を使用しています

何が足りないのでしょうか?

答え1

実際のサーバー構成と、どのユーザーが利用可能か/パスワードが設定されているかを確認しないと、判断は困難です。最も安全な方法は、fe のようにコマンドにユーザー名 + パスワードを追加することです。

wget -t 3 --timeout=10 ftp://ユーザー名:[メールアドレス]//ファイルへのパス

お役に立てれば幸いです :)

関連情報