LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 04-19-2012, 07:12 AM   #1
Jhinukk
LQ Newbie
 
Registered: Jan 2012
Posts: 8

Rep: Reputation: Disabled
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
 
Old 04-19-2012, 07:17 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
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
 
Old 04-19-2012, 07:59 AM   #3
Satyaveer Arya
Senior Member
 
Registered: May 2010
Location: Palm Island
Distribution: RHEL, CentOS, Debian, Oracle Solaris 10
Posts: 1,415

Rep: Reputation: 305Reputation: 305Reputation: 305Reputation: 305
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?
 
Old 04-19-2012, 02:23 PM   #4
wpeckham
Senior Member
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, Fedora, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, Vsido, tinycore, Q4OS
Posts: 2,135

Rep: Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849
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.

Last edited by wpeckham; 04-19-2012 at 02:25 PM.
 
Old 04-20-2012, 12:56 AM   #5
Jhinukk
LQ Newbie
 
Registered: Jan 2012
Posts: 8

Original Poster
Rep: Reputation: Disabled
Hi,

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

Regards,
Jhinukk
 
Old 04-20-2012, 03:45 AM   #6
Satyaveer Arya
Senior Member
 
Registered: May 2010
Location: Palm Island
Distribution: RHEL, CentOS, Debian, Oracle Solaris 10
Posts: 1,415

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] FTP connection refused Perrorist Linux - Server 3 10-13-2009 06:11 PM
ftp connection refused sunils1973 Linux - Networking 2 07-22-2009 01:54 AM
ftp:// CONNECTION REFUSED _ AsiF Linux - Networking 6 06-30-2007 08:24 AM
ftp - connection refused aje Linux - Networking 4 11-06-2004 05:19 AM
ftp connection refused charkym Linux - Networking 2 06-26-2001 03:29 PM


All times are GMT -5. The time now is 11:46 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration