View Full Version : [ubuntu] Can't access any ftp

July 22nd, 2008, 09:36 AM
I'm pretty much an amateur with computing in general but anyhow, so I've installed Ubuntu and got everything configured to be able to do my work. But for some reason I cannot get access to their FTP site. I've tried with three different programs and through my browser window and nada, zip.

And moreoever I can't seem to access any FTP site at all. If I do a connect to server and type in an open access public address it just won't connect. I feel that it must be something very simple but it goes beyond the remit of my limited knowledge. Does anyone have any suggestions?

July 22nd, 2008, 09:43 AM
Is it an FTP website or you trying to download files through FTP? If you are trying to download files you will need an FTP client.

July 22nd, 2008, 09:48 AM
Or for any other reason, check your router/proxy if it allows port 21 communication.

July 22nd, 2008, 10:24 AM
Thanks for the help.

I'm using three different ftp clients as well as in-browser and none of them can even access the site, never mind download the files.

So in Fireftp it gives me a 530 User **** cannot log in error message. It shows me the site I'm trying to log into and asks me for my details but doesn't let me go any further. In connect to server it says could not connect to host.

iacullalad - My router is using the same settings as my Windows account. How do I check port 21?

July 22nd, 2008, 10:26 AM
Refer to your routers manual for that one. They usually differ.

July 22nd, 2008, 12:56 PM
Ok I managed to open port 21 on my router through Windows. Same error, nothing has changed. When I try a number of different (open) FTP sites it gives me a 500 illegal port command error like so:

220 (vsFTPd 2.0.6)
USER anonymous
331 Please specify the password.
PASS (password not shown)
230- Welcome to the
230- Central Communication Facility of the
230- Aristotle University of Thessaloniki
230-This FTP server is located at the Central Communication Facility of the
230-Aristotle University of Thessaloniki, in Macedonia, Greece.
230-All transfers are logged, if you do not like this, you may disconnect now.
230-If you have any problems during your session please report them via
230-electronic mail to ftpmaster@ccf.auth.gr
230 Login successful.
211 End
257 "/"
200 Switching to ASCII mode.
PORT 127,0,1,1,236,57
500 Illegal PORT command. : //

July 22nd, 2008, 02:10 PM
Try opening both ports 20 and 21. Try connecting again.
Can you run a scan with nmap against your own computer, see what comes up?

July 22nd, 2008, 03:03 PM
I've opened both ports and no change. Here are my nmap scan results:

Starting Nmap 4.53 ( http://insecure.org ) at 2008-07-22 16:09 SAST
Initiating Ping Scan at 16:09
Scanning [1 port]
Completed Ping Scan at 16:09, 2.00s elapsed (1 total hosts)
Host appears to be down.
Read data files from: /usr/share/nmap
Note: Host seems down. If it is really up, but blocking our ping probes, try -PN
Nmap done: 1 IP address (0 hosts up) scanned in 2.026 seconds

It seems that I can't do a stealth scan because I don't have root privileges enabled (or whatever)... Is this helpful or have I done it wrong?

Thanks for all the help.

July 22nd, 2008, 03:12 PM
if you want to do the stealth scan put a sudo infront of the command to execute to temporatilay use root priveleges

July 22nd, 2008, 03:19 PM
oh great thanks:

Starting Nmap 4.53 ( http://insecure.org ) at 2008-07-22 16:18 SAST
Initiating Ping Scan at 16:18
Scanning [2 ports]
Completed Ping Scan at 16:18, 0.02s elapsed (1 total hosts)
Initiating Parallel DNS resolution of 1 host. at 16:18
Completed Parallel DNS resolution of 1 host. at 16:18, 0.15s elapsed
Initiating SYN Stealth Scan at 16:18
Scanning dsl-240-13-147.telkomadsl.co.za ( [1714 ports]
Discovered open port 21/tcp on
Completed SYN Stealth Scan at 16:18, 32.58s elapsed (1714 total ports)
Host dsl-240-13-147.telkomadsl.co.za ( appears to be up ... good.
Interesting ports on dsl-240-13-147.telkomadsl.co.za (
Not shown: 1713 filtered ports
21/tcp open ftp

Read data files from: /usr/share/nmap
Nmap done: 1 IP address (1 host up) scanned in 32.803 seconds
Raw packets sent: 3434 (151.076KB) | Rcvd: 7 (322B)

July 22nd, 2008, 04:02 PM
I have been looking into active/passive mode issues but that also doesn't seem to be the problem. However I configure my ftp clients it gives me the same result. It's especially frustrating because my Windows (blech) doesn't have any issue with connecting via FTP.

Does anyone else have anything to suggest?