LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   FTP: Connection refused (https://www.linuxquestions.org/questions/linux-newbie-8/ftp-connection-refused-940640/)

Jhinukk 04-19-2012 07:12 AM

FTP: Connection refused
 
Hi,

I am trying to FTP from my Linux machine to a MAC machine. I am getting this connection refused error. But from that MAC machine I am able to FTP to the Linux box. How to resolve this issue?

Regards,
Jhinukk

acid_kewpie 04-19-2012 07:17 AM

you can make sure there actually IS an ftp server to connect to, and that whatever firewall rules may be running on the mac are adjusted to permit ftp traffic

Satyaveer Arya 04-19-2012 07:59 AM

Make sure that the ftp server on linux machine is installed and the ftp service is running or not. Also check that ftp server is running, port 21 is open?

wpeckham 04-19-2012 02:23 PM

step back to advance one....
 
@Satyaveer Arya: you have it backwards, he needs the FTPD server running on his MAC. The other way works already.

OP: have you considered using sftp instead? OpenSSH runs almost everywhere and is far more secure in MANY ways.
For the rest, see above: check your ftpd server on the MAC: if it is not listening there is nothing for FTP on the Linux machine to connect into. It it is running, make sure you have no firewall or NAT protecting the MAC from outside connections.

Jhinukk 04-20-2012 12:56 AM

Hi,

Thanks for your quick reply. "sudo -s launchctl load -w /System/Library/LaunchDaemons/ftp.plist" worked fine form me.

Regards,
Jhinukk

Satyaveer Arya 04-20-2012 03:45 AM

Quote:

@Satyaveer Arya: you have it backwards, he needs the FTPD server running on his MAC. The other way works already.
Ufff! :(


All times are GMT -5. The time now is 01:24 AM.