If you ’ ve visited the Sharing Preference panel in the newer versions of Mac OS X you may have noticed there is no long the aim option to enable an FTP waiter to plowshare files and folders. well, at least there international relations and security network ’ deoxythymidine monophosphate an obvious option, but the FTP and SFTP server function does placid exist, the two have just been split into different functionalities, with the new versions of OS X preferring SFTP rather than FTP. Regardless of what you want to use, setting up a server for either of them is highly dim-witted, and we ’ ll walk through how to start either an FTP or SFTP server in OS X. Each of these FTP/SFTP waiter tricks work in all newly versions of OS X, be it OS X Yosemite 10.10.x, Mavericks 10.9, Mountain Lion 10.8, or 10.7 Lion.
Start the FTP Server in OS X
This will start a generic FTP and FTPS server on the Mac, but not an SFTP server :
- Launch the Terminal (/Applications/Utilities) and enter the following command to start the FTP server:
- Confirm the FTP server works by typing:
sudo -s launchctl load -w /System/Library/LaunchDaemons/ftp.plist
If you see the familiar FTP login :
$ file transfer protocol localhost
Trying : :1…
Connected to localhost.
220 : :1 FTP server ( tnftpd 20100324+GSSAPI ) fix.
name ( localhost : Paul ) :
You know the waiter is running. If you don ’ thyroxine experience that, then the waiter either hasn ’ triiodothyronine finished starting yet or you didn ’ metric ton enter the command by rights. You can then FTP from early Macs via the same file transfer protocol control, or by using the “ Connect to Server ” option in the Finder .
Enabling the SFTP Server in OS X
As you credibly know, FTP is unencrypted and as a result as fallen out of party favor for security reasons. Enabling SFTP is actually easier than FTP on the Mac these days :
- Launch System Preferences and go to “Sharing”
- Click on the checkbox next to “Remote Login” to enable SSH and SFTP
Update: Our much more detail steer on Remote Login and SSH Server is here .
You can verify that SFTP is working by typing this at the instruction line :
Note: The FTP and SFTP servers are different, and enabling one does not enable the other. SFTP is recommended because of the default encoding layer and guarantee transfer .
Disable FTP or SFTP Server in OS X
here ’ s how to disable the FTP server :
sudo -s launchctl unload -w /System/Library/LaunchDaemons/ftp.plist
As the command suggests, this unloads the file transfer protocol daemon and shuts down the waiter. obviously you can only shut down and disable the FTP waiter if it was enabled to begin with .
Disabling SFTP is fair a matter of unchecking the “ Remote Login ” box that sits within the Sharing Preference Panel of OS X .
If you ’ re wondering how any of this is different from prior versions of OS X, you would have to look to Snow Leopard ( 10.6 ) or before to find the difference. previously, an FTP Server option was a toggle within the general sharing predilection panels like this :
Though it ’ s not wholly clear why Apple pulled the easy frontend to FTP sharing, it ’ s potential they are plainly choosing to favor SFTP because it ’ s a more secure protocol, and by enabling one you enable both. however, FTP and FTPS servers are hush approximately ( as are clients for that matter ), so it ’ randomness plainly a matter of using the terminal to enable the server side of things. broadly speaking, because SFTP is much more secure, that is what you should be using for distant file transfers and connections though, sol keep that in mind if you plan on hosting any kind of server to the outdoor populace, or even if you just want to have secured file transfers yourself to and from distant Macs.
This is an elaboration on a point from Land of Daniel via TUAW, who goes on to explain how to get ftpd to launch mechanically on boot, therefore if you ’ rhenium interested in that, don ’ t miss their post .