The unknown host problem of FTP IPv6 in zZW Linux

I encountered unknown host problem when ftp with ipv6 in linux

1.[[email protected] ~]$ cat /etc/issue
Red Hat Enterprise Linux Server release 5.5 (Tikanga)

in Red Hat Enterprise Linux Server release 5.5 (Tikanga)  FTP

[[email protected] ~]$ rpm -qa |grep ftp
ftp-0.17-37.el5
lftp-3.7.11-4.el5
tftp-server-0.49-2
vsftpd-2.0.5-24.el5

[[email protected] ~]$ ftp [2001:202:32:0:250::XXXX:XXXX:57c0]
ftp: [2001:202:32:0:250:XXXX:XXXX:57c0]: unknown host

[[email protected] ~]$ lftp bdcuser:bdcuser\[email protected][2001:202:32:0:250::XXXX:XXXX:57c0]:21 # Change to lftp command, then you can log in. Note that the backslash in the password bdcuser\!35tt436w is an escape character that is used to escape the ! sign is used.
lftp [email protected]:202:32:0:250:XXXX:XXXX:57c0:~> ls
drwxrwxr-x 6 505 505 4096 Sep 20 11:50 BDC_FTP
-rw-r–r– 1 505 505 212 Oct 23 11:52 SUMMARY_FILE_20181023211157.verf
-rw-r–r– 1 505 505 150 Oct 24 11:45 SUMMARY_FILE_20181024210500.verf
-rw-r–r– 1 505 505 103 Oct 25 11:45 SUMMARY_FILE_20181025210500.verf

2.Change to another machine

[[email protected] ~]$ cat /etc/issue
Red Hat Enterprise Linux Server release 6.0 (Santiago)
Kernel \r on an \m

[[email protected] ~]$ rpm -qa |grep ftp
ftp-0.17-51.1.el6.x86_64
vsftpd-2.2.2-6.el6.x86_64
report-plugin-ftp-0.18-7.el6.x86_64
gvfs-obexftp-1.4.3-9.el6.x86_64
report-config-ftp-0.18-7.el6.x86_64
tftp-0.49-5.1.el6.x86_64
lftp-4.0.9-1.el6.x86_64

[[email protected] ~]$ ftp 2001:202:32:0:250:XXXX:XXXX:57c0 #可以成功
Connected to 2001:202:32:0:250:XXXX:XXXX:57c0 (2001:202:32:0:250:XXXX:XXXX:57c0).
220 (vsFTPd 2.2.2)
Name (2001:202:32:0:250:XXXX:XXXX:57c0:csbdc): bdcuser
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> ls
229 Entering Extended Passive Mode (3000|).
150 Here comes the directory listing.
drwxrwxr-x 6 505 505 4096 Sep 20 11:50 BDC_FTP
-rw-r–r– 1 505 505 212 Oct 23 11:52 SUMMARY_FILE_20181023211157.verf
-rw-r–r– 1 505 505 150 Oct 24 11:45 SUMMARY_FILE_20181024210500.verf
-rw-r–r– 1 505 505 103 Oct 25 11:45 SUMMARY_FILE_20181025210500.verf
226 Directory send OK.

3. Initially, I think it is the version of the FTP client that comes with linux, but I didn’t find any information about it.

ftp-0.17-37 does not support IPV6 (below Red Hat Enterprise Linux version 6)

ftp-0.17-51.1 can support IPV6 (for Red Hat Enterprise Linux version 6 and above)

Similar Posts: