Remote Login is a feature in Mac OS X’s Sharing preferences that allow remote users to connect to a Mac in a secure fashion. Additionally, it includes and enables the SFTP server, which is the secure replacement for FTP.
By enabling SFTP in sharing preferences the SSH server will be disabled.
You will need to stop and restart the server a few times:
sudo launchctl stop com.openssh.sshd
sudo launchctl start com.openssh.sshd
Create a group sftpgroup
Create a standard user sftpuniversal
Allow ssh remote login for sftpuniversal (or all users)
Verify that you are restricted (chrooted) to the fruitbox folder alone, and cannot access files or folders in other areas of the remote server.
Verify that you can upload and download files and folders via the fruitbox folder. You may have to adjust the permissons on the remote server fruitbox folder using Get Info.
FTP operates on two different Transmission Control Protocol (TCP) ports: 20 and 21. FTP ports 20 and 21 must both be open on the network for successful file transfers.
SFTP usually uses port 22 but can be configured to run on nearly any port. Port 22 is generally used for connection via SSH. SFTP is just one of protocols which can be run over SSH (others include virtual terminal). In fact, the SFTP is independent and can be run even without using SSH.
SFTP is sometimes called Secure FTP, which leads to a common confusion with FTPS (which is called Secure FTP too).