שרפתי קצת זמן על ביצוע NLST במצב PASV והייתי מקבל connection closed by remote host
מה שעשיתי היה :
ftp -d 10.0.0.2
Connected to 10.0.0.2.
220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------
220-You are user number 1 of 50 allowed.
220-Local time is now 15:54. Server port: 21.
220-IPv6 connections are also welcome on this server.
220 You will be disconnected after 15 minutes of inactivity.
Name (10,0,0,2,:user): user
---> USER user
331 User user OK. Password required
Password:
---> PASS XXXX
230 OK. Current directory is /home/user
---> SYST
215 UNIX Type: L8
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> quote PASV
---> PASV
227 Entering Passive Mode (10,0,0,2,133,5)
ftp> quote NLST
---> NLST
Connected to 10.0.0.2.
220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------
220-You are user number 1 of 50 allowed.
220-Local time is now 15:54. Server port: 21.
220-IPv6 connections are also welcome on this server.
220 You will be disconnected after 15 minutes of inactivity.
Name (10,0,0,2,:user): user
---> USER user
331 User user OK. Password required
Password:
---> PASS XXXX
230 OK. Current directory is /home/user
---> SYST
215 UNIX Type: L8
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> quote PASV
---> PASV
227 Entering Passive Mode (10,0,0,2,133,5)
ftp> quote NLST
---> NLST
מה שלא עשיתי היה לפתוח חיבור נוסף ל 10.0.0.2:34503
מקורות:
http://www.ietf.org/rfc/rfc959.txt
http://ubuntuforums.org/showthread.php?t=1909740
http://www.slacksite.com/other/ftp.html#passive
http://www.softpanorama.org/Net/Application_layer/Ftp/troubleshooting.shtml
אין תגובות:
הוסף רשומת תגובה