On 18/11/2007, Aharon Schkolnik <[EMAIL PROTECTED]> wrote: > On Friday 16 November 2007, Amos Shapira wrote: > > On 15/11/2007, Aharon Schkolnik <[EMAIL PROTECTED]> wrote: > > > Hi. > > > > > > I just had to re-install linux on my machine (don't ask). > > > > > > Now I can't access any anonymous ftp sites. > > > > > > Eg: > > > > > > > > > $wget -v -d ftp://ftp.cs.huji.ac.il/ > > > > Can you add -S to the wget line to get the server response? > > > here you go: > > > wget --passive-ftp -S -v -d ftp://ftp.cs.huji.ac.il/ > DEBUG output created by Wget 1.10.2 (Red Hat modified) on linux-gnu. > > Using `.listing' as listing tmp file. > --09:40:54-- ftp://ftp.cs.huji.ac.il/ > => `.listing' > Resolving ftp.cs.huji.ac.il... 132.65.16.9 > Caching ftp.cs.huji.ac.il => 132.65.16.9 > Connecting to ftp.cs.huji.ac.il|132.65.16.9|:21... connected. > Created socket 3. > Releasing 0x097047f8 (new refcount 1). > Logging in as anonymous ... > 220 ProFTPD 1.2.2 Server (ftp.cs.huji.ac.il) [ftp.cs.huji.ac.il] > --> USER anonymous > > > Error in server response, closing control connection. > Closed fd 3 > Retrying.
Here is what I get: $ wget -S -v -d ftp://ftp.cs.huji.ac.il/ DEBUG output created by Wget 1.10.2 on linux-gnu. Using `.listing' as listing tmp file. --20:56:56-- ftp://ftp.cs.huji.ac.il/ => `.listing' Resolving ftp.cs.huji.ac.il... 132.65.16.9 Caching ftp.cs.huji.ac.il => 132.65.16.9 Connecting to ftp.cs.huji.ac.il|132.65.16.9|:21... connected. Created socket 3. Releasing 0x00000000005561e0 (new refcount 1). Logging in as anonymous ... 220 ProFTPD 1.2.2 Server (ftp.cs.huji.ac.il) [ftp.cs.huji.ac.il] --> USER anonymous 331 Anonymous login ok, send your complete email address as your password. --> PASS Turtle Power! 230 Anonymous access granted, restrictions apply. --> SYST 215 UNIX Type: L8 --> PWD 257 "/" is current directory. --> TYPE I 200 Type set to I. ==> CWD not needed. conaddr is: 132.65.16.9 --> PASV 227 Entering Passive Mode (132,65,16,9,192,10). trying to connect to 132.65.16.9 port 49162 Created socket 4. --> LIST 150 Opening ASCII mode data connection for file list [ <=> ] 442 1.10K/s Closed fd 4 226 Transfer complete. lrwxrwxrwx 1 root wheel 1 Nov 7 2004 adir -> . lrwxrwxrwx 1 root wheel 1 Nov 7 2004 cs -> . drwxr-xr-x 8 root wheel 512 Nov 18 03:10 mirror d--x-wx-wx 2 ftp wheel 512 Aug 16 07:13 outgoing dr-xr-xr-x 47 29911 wheel 1024 Aug 28 13:15 pub dr-xr-xr-x 66 29911 wheel 1536 Mar 26 2007 users drwxrwxrwt 608 root wheel 20480 Oct 24 13:31 virus 20:57:02 (1.09 KB/s) - `.listing' saved [442] SYMLINK; perms 777; month: Nov; day: 7; year: 2004 (no tm); link to: . SYMLINK; perms 777; month: Nov; day: 7; year: 2004 (no tm); link to: . DIRECTORY; perms 755; month: Nov; day: 18; time: 03:10:00 (no yr); DIRECTORY; perms 133; month: Aug; day: 16; time: 07:13:00 (no yr); DIRECTORY; perms 555; month: Aug; day: 28; time: 13:15:00 (no yr); DIRECTORY; perms 555; month: Mar; day: 26; year: 2007 (no tm); DIRECTORY; perms 776; month: Oct; day: 24; time: 13:31:00 (no yr); Removed `.listing'. Wrote HTML-ized index to `index.html' [831]. Closed fd 3 So I suspect that for some reason the FTP server closes the connection and that's what the frp client reports as "Error in server response". A sniffer output (as Ariel suggested with Wireshark) and maybe an strace on the client might help understand what's actually is going on. Cheers, --Amos ================================================================= To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]