Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

I recently upgraded to Lion and I tried to FTP into it from another Mac, but I couldn't. I went to System Preferences>Sharing and could only find AFP and SMB sharing. How do I enable FTP sharing in Lion?

share|improve this question
add comment

2 Answers

up vote 4 down vote accepted

The option has been removed from the GUI in OS X 10.7 however you can enable it with a few commands.

Here is a good write up on how to do it.

http://reviews.cnet.com/8301-13727_7-20088844-263/managing-ftp-services-in-os-x-lion/

Summary of the link above:

To Load:

sudo launchctl load -w /System/Library/LaunchDaemons/ftp.plist

Then to start and stop you would run the following:

sudo launchctl start com.apple.ftpd

sudo launchctl stop com.apple.ftpd

To Unload:

sudo launchctl unload /System/Library/LaunchDaemons/ftp.plist
share|improve this answer
2  
Thanks for posting. Can you please summarize the contents of the link? Links have a tendency to disappear down the road, leaving other people with an answer that has no meaning, because the link doesn't go anywhere. –  daviesgeek Mar 15 '12 at 21:53
    
I'd agree with the link above by enabling remote login for SFTP access. I will summarise the enable ftp above anywho. –  Lyken Mar 15 '12 at 22:28
add comment

If I am not mistaken FTP is not supported anymore, too insecure, eg sends your password in the clear over the network etc. However, if you enable "Remote Login" in sharing, you can use SFTP which works just as well as FTP. SFTP stands for secure FTP and therefore all the information you transfer between computers is encrypted while in transit over the network, internet, etc.

Remote Login enable

Once you enable it on your computer you can connect to it using SSH / SFTP log in formats for example see below:

sftp username@hostname_or_ip-address
share|improve this answer
    
I was using a GUI app and I tried SFTP as the protocol, but it wouldn't connect. I do have Remote Login enabled. –  daviesgeek Mar 15 '12 at 22:07
    
Check the Firewall setting in "Security & Privacy" system prefernce pane, you may want to temporary turn off the firewall and then see if you can connect. –  MrDaniel Mar 15 '12 at 22:14
    
My Firewall is off. –  daviesgeek Mar 15 '12 at 22:16
    
What's the difference when you run the sftp user@host vs ssh user@host? If you can ssh in you should be able to sftp in. Does this other solution help? apple.stackexchange.com/questions/41652/… –  afragen Mar 15 '12 at 22:40
    
Sorry I wasn't clear, I know the differences. I was asking if you can log in via sftp in the Terminal? When logging in via sftp your should get an sftp > prompt. –  afragen Mar 15 '12 at 23:34
show 13 more comments

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.