LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-16-2008, 05:13 AM   #1
chobo
LQ Newbie
 
Registered: Nov 2007
Posts: 21

Rep: Reputation: 15
Question ftp: connect :Unknown error number


Dear ..

i have problem after installed NcFTPd on fedora 7

it can not do ftp from the outside , here the problem accured when tried to ftp from DOS Mode of windows

C:\Documents and Settings\De2jen>ftp 202.xx.xx.xx
> ftp: connect :Unknown error number


so The probles IS ftp: connect :Unknown error number


please .. help me how to fix it this case


thanks a lot ...


regards


chobo
 
Old 07-16-2008, 06:10 AM   #2
murugesan
Member
 
Registered: May 2003
Location: Bangalore ,Karnataka, India, Asia, Earth, Solar system, milky way galaxy, black hole
Distribution: murugesan openssl
Posts: 181

Rep: Reputation: 29
It seems the port number is not the correct port number.
Consider the following command:
Code:
ftp
ftp>open 202.xx.xx.xx:22
> ftp: connect :Unknown error number
ftp>open 202.xx.xx.xx:21
Connected to 202.xx.xx.xx.
...etc
 
Old 07-16-2008, 06:47 AM   #3
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
Does
telnet 202.x.x.x 21
gives you a message?
 
Old 07-16-2008, 06:57 AM   #4
chobo
LQ Newbie
 
Registered: Nov 2007
Posts: 21

Original Poster
Rep: Reputation: 15
ftp: connect :Unknown error number

still canot


i tried below ...
C:\>ftp
ftp> open 202.xx.xx.xx:21
Unknown host 202.xx.xx.xx:21.
ftp> open 202.xx.xx.xx:20
Unknown host 202.xx.x.xx:20.
ftp> open 202.xx.xx.xx:22
Unknown host 202.xx.xx.xx:22.

ftp>
until 25 of port number i have tried

he he he

any other sugestion ...

n now i using vsFTPd of FTP server in my FC7

but have same problem ..


thanks
 
Old 07-16-2008, 07:07 AM   #5
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
Quote:
open 202.xx.xx.xx:21
Unknown host 202.xx.xx.xx:21
Ahah this ftp client is really lame. You can really see Micro$oft strategy with details like this. They had no interest to use standards, they wanted you to use their netbios thing.

Another example:

Quote:
ftp> help open
open Connect to remote tftp
ftp> help close
close Terminate ftp session
Hum.. tftp or ftp ?? make up your mind.

chobo, try the telnet

Last edited by nx5000; 07-16-2008 at 07:08 AM.
 
Old 07-16-2008, 07:11 AM   #6
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

This could be related to passive vs active ftp. Try switching to the one you are not using, how to do this depends on the ftp client you are using (the default linux ftp client I use uses the passive command to switch between active and passive).

Hope this helps.

Another thing that came to mind: Are you using a firewall (client and/or server side)?

Last edited by druuna; 07-16-2008 at 07:12 AM.
 
Old 07-16-2008, 07:16 AM   #7
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
Passive/active has nothing to do with the connection opening (connect from client to server port 21. Nothing else) Passive/active is used after.

Unless this client is really more dumb than anything.
 
Old 07-16-2008, 07:41 AM   #8
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,
Quote:
Originally Posted by nx5000 View Post
Unless this client is really more dumb than anything.
Which I have seen more then once...... And your 'M$ and lame' comment in your previous post also points in that direction

The OP should at least check this, just to make sure.
 
Old 07-16-2008, 10:44 PM   #9
chobo
LQ Newbie
 
Registered: Nov 2007
Posts: 21

Original Poster
Rep: Reputation: 15
Question

Quote:
Originally Posted by nx5000 View Post
Ahah this ftp client is really lame. You can really see Micro$oft strategy with details like this. They had no interest to use standards, they wanted you to use their netbios thing.

Another example:


Hum.. tftp or ftp ?? make up your mind.

chobo, try the telnet


so . what the solution .... or what can i do to fix it


thanks
 
Old 07-16-2008, 10:57 PM   #10
chobo
LQ Newbie
 
Registered: Nov 2007
Posts: 21

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by druuna View Post
Hi,

This could be related to passive vs active ftp. Try switching to the one you are not using, how to do this depends on the ftp client you are using (the default linux ftp client I use uses the passive command to switch between active and passive).

Hope this helps.

Another thing that came to mind: Are you using a firewall (client and/or server side)?


i stopped iptables it mean i use no firewall in FC7 ...

n the problem is from my FC ip range it can :
c this

C:\>ftp 202.xxx.xx.xx <-- it mean ip-number of my FC7
Connected to 202.xxx.xx.xx.
220 (vsFTPd 2.0.5)
User (202.xxx.xx.xxnone)): u5
331 Please specify the password.
Password:
230 Login successful.
ftp> ls -l
200 PORT command successful. Consider using PASV.
150 Here comes the directory listing.
226 Directory send OK.
ftp> ls /
200 PORT command successful. Consider using PASV.
150 Here comes the directory listing.
/bin
/boot
/dev
/etc
/home
/lib
/lost+found
/media
/misc
/mnt
/net
/opt
/proc
/root
/sbin
/selinux
/srv
/sys
/tmp
/usr
/var
226 Directory send OK.
ftp: 145 bytes received in 0.01Seconds 9.67Kbytes/sec.
ftp>

-----------------------------------

but if from the outside ( others IP )/ ( other bukding) it accured Unknown error number


what The problem ya ....


thanks ...

Last edited by chobo; 07-16-2008 at 10:58 PM.
 
Old 07-17-2008, 06:09 AM   #11
murugesan
Member
 
Registered: May 2003
Location: Bangalore ,Karnataka, India, Asia, Earth, Solar system, milky way galaxy, black hole
Distribution: murugesan openssl
Posts: 181

Rep: Reputation: 29
Shall we know the output of ping:
ping 202.xxx.xx.xx
to know that 202.xxx.xx.xx is accessible from:
Quote:
( others IP )/ ( other bukding)
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
What! Ican't connect to IPs ending in even number! Hackeron Linux - Networking 2 03-09-2007 06:16 PM
Perl regexs: How to recover an unknown number of matches? enemorales Programming 6 07-06-2006 10:59 AM
ftp/tcp:unknown services mehro Linux - Software 1 10-01-2005 06:41 AM
Using sscanf to grab an unknown number of variables R00ts Programming 4 06-06-2005 05:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:51 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration