Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Create a chrooted SSH/SFTP server on OS X' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Create a chrooted SSH/SFTP server on OS X
Authored by: mwnovak on Feb 02, '05 07:39:41PM

I tried this patch for OSSH-3.6.1 and it works beautifully: chrooted SSH, SCP, and SFTP.

Very, very nice. There were two things that I discovered along the way (I'm a Linux neophyte, so bear with me):

1) At least under OS 10.3(.7), you'll need to copy your new sshd into /usr/sbin/sshd-chroot (rather than the stated /usr/local/sbin/sshd-chroot, which doesn't exist).

2) The patched OpenSSH-3.6.1 would NOT compile using the gcc provided with XCode 1.0 and/or 1.1. After grabbing XCode 1.5 from Apple, everything was smooth.

Beyond that, it's worth noting that the mailing list discussions at http://chrootssh.sourceforge.net/ offer a wealth of information about configuring/tuning the resultant chrooted environment. Very helpful.

--MW

[ Reply to This | # ]