1755766 Members
2894 Online
108838 Solutions
New Discussion юеВ

FTP fails

 
John Minteer
New Member

FTP fails

I am getting the following message when I try to FTP to anohter machine.

bash-2.05a# ftp star
ftp: connect to address ::ffff:149.63.66.254: Connection refused
Trying ::ffff:149.63.66.254...
ftp: connect to address ::ffff:149.63.66.254: Connection refused
Trying ::ffff:149.63.66.254...
ftp: connect: Connection refused
ftp>

This same machine accepts incoming FTP requests.

11 REPLIES 11
Ivan Ferreira
Honored Contributor

Re: FTP fails

Can you ftp to 149.63.66.254 from another machine?

The "Connection refused" usually means that the port cannot be reached, because the service is not enabled or is blocked by a firewall.

Can you see the port 21 open using netstat -an in "star"?
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Victor Semaska_3
Esteemed Contributor

Re: FTP fails

John,

As Ivan mentioned, the ftp service might not be enabled. Another way to check is to issue the following command:

telnet star 21

If it's enabled it should come back with one line like:

220 star FTP server (Compaq Tru64 UNIX Version 5.60) ready.

Vic
There are 10 kinds of people, one that understands binary and one that doesn't.
John Minteer
New Member

Re: FTP fails

Yes I can open port 21 with a telnet session.
Venkatesh BL
Honored Contributor

Re: FTP fails

Are you able to ftp to star from any other machine?
John Minteer
New Member

Re: FTP fails

i can ftp to star from all machines except this one.
Ivan Ferreira
Honored Contributor

Re: FTP fails

What is the MAC address reported for star reported in this box? Use the arp -a command and compare with the MAC adrees of the STAR srever. At star, run netstat -ni or ifconfig -a to obtain the mac address.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
John Minteer
New Member

Re: FTP fails

they are not on the same LAN. There is no arp entry for star. We can telnet to star, rcp to star, we cannot ftp to star.
Ivan Ferreira
Honored Contributor

Re: FTP fails

Should be a firewall misconfiguration.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Ivan Ferreira
Honored Contributor

Re: FTP fails

I forgod to add, you should use first the netstat command on star, to verify that you at least see an SYN_RCV from the server.

If you can't see a SYN_RCV, then you have to use tcpdump to verify where the packets are stopping.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?