Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ftp: connect :Unknown error number

 
Minal Silimkar-Urankar
Ranch Hand
Posts: 136
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am working on Redhat 5 and trying to connect from Windows XP using ftp.
I have started vsftp service. On windows it shows me followinf error.


C:\>ftp 172.16.1.29
> ftp: connect :Unknown error number


How will I resolve my problem?
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is the telnet port open in the firewall?

Are you running SELinux? Have you checked its settings? Does telnet work if you disable SELinux?

I assume you attmepted to telnet from the RHEL system itself and that worked.

Can you ping the RHEL system from the XP system?
 
Minal Silimkar-Urankar
Ranch Hand
Posts: 136
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using Redhat 5. I tried to ping Redhat from windows, it pings. I can connect to Redhat using putty client, using telnel, ssh, its working fine.
From windows command promt I tried to connect Redhat using FTP, it shows following error message.

C:\>ftp 172.16.1.29
> ftp: connect :Unknown error number


I have started vsftpd service.

I tried to connect windows to fedora using ftp, I started vsftpd service it worked.
 
Minal Silimkar-Urankar
Ranch Hand
Posts: 136
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I tryed to connect to redhat 5 server using telnet & ftp from windows, it shows me following error.



C:\>telnet 172.16.1.29
Connecting To 172.16.1.29...Could not open connection to the host, on port 23:
Connect failed



C:\>ftp 172.16.1.29
> ftp: connect :Unknown error number


Redhat has machine is pinging from windows machine

C:\>ping 172.16.1.29

Pinging 172.16.1.29 with 32 bytes of data:

Reply from 172.16.1.29: bytes=32 time<1ms TTL=64
Reply from 172.16.1.29: bytes=32 time<1ms TTL=64
Reply from 172.16.1.29: bytes=32 time<1ms TTL=64
Reply from 172.16.1.29: bytes=32 time<1ms TTL=64

Ping statistics for 172.16.1.29:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms



I checked status of services xinetd & vsftpd from redhat box, its working fine.

[root@redhat5 ~]# service vsftpd status
vsftpd (pid 20006) is running...
[root@redhat5 ~]# service xinetd status
xinetd (pid 21746) is running...


I am not getting, what is actual problem?


 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Either your firewall is not open, or SE Linux is preventing the connection from being made.

What happens if you run telnet from the RedHat machine? Can you connect from there?
 
Minal Silimkar-Urankar
Ranch Hand
Posts: 136
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Quotes by Peter Johnson

Either your firewall is not open, or SE Linux is preventing the connection from being made.


Peter your guess was right, firewall was not open. So I started it.

About SE Linux, it was showing settings as Enforcing, I changes it to Permissible.


Now my problem is solved. Its working fine.

Thanks for help Peter
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic