Create a chrooted SSH/SFTP server on OS X

Nov 04, '04 08:24:00AM

Contributed by: SonyaLynn

By following these directions -- with the BIGGEST kudos to Masaki Ogawa, who is a credit to the Mac community -- you can use ssh and secure FTP (sftp) with chroot to enable truly secure file transfer. Both encrypt the session, and have it set so that sftp users won't have free run of the whole file system. I've tested this on OS X Server 10.3.5, and it worked like a charm, and without breaking anything.

You will need to have the Developer Tools (nee XCode) installed on your system for this to work.

Goodye, insecure old FTP. Hellooooo, security! Pass it on!

[robg adds: I haven't tested this one...]

Comments (12)


Mac OS X Hints
http://hints.macworld.com/article.php?story=2004110314282345