Pick of the Week - Nov 10 [Show all picks]
Path Finder 5 - A feature-laden Finder replacement
Submit Hint Search The Forums LinksStatsPollsFAQHeadlinesRSS
12,000 hints and counting!

10.4: Create a chrooted SSH/SFTP server UNIX
Tiger only hintThe directions from this previous hint weren't cutting it anymore for setting up a chrooted SFTP environment in Tiger, as the networking code changed significantly from Panther.

With these updated directions, you can use ssh and secure FTP (sftp) with chroot to enable a 10.4 machine with truly secure file transfer. These instructions result in a connection that both encrypts the session and has it set so that sftp users won't have free run of the whole file system -- they will be jailed in a location you specify. I've tested this on a couple machines running OS X 10.4.2, and it appears to work without breaking anything; I've also patched one of the machines to 10.4.3, and all seems fine so far.

You will need to have the Developer Tools (Xcode) installed on your system for this to work. These directions work on Tiger client; I have no resources to test them on Tiger Server.
    •    
  • Currently 0.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (0 votes cast)
 
[13,030 views]  

10.4: Create a chrooted SSH/SFTP server | 4 comments | Create New Account
Click here to return to the '10.4: Create a chrooted SSH/SFTP server' hint
The following comments are owned by whomever posted them. This site is not responsible for what they say.
10.4: Create a chrooted SSH/SFTP server
Authored by: SonyaLynn on Thu, Nov 3 2005 at 7:50PM PST
Well done, Brad! I hadn't had time to figure out how to do this again now that my company's on Tiger (and Tiger Server...what can I say? we NEEDED ACLs badly...but I expect that your instructions should work on that as well, what with being the same code-base and all).

Nice to see continued interest in SFTP as a cross-platform alternative to FTP on OS X. :-)

[ Reply to This | # ]
10.4: Create a chrooted SSH/SFTP server
Authored by: btlupin on Sun, Nov 6 2005 at 2:21AM PST
Is it possible to limit the number of concurrent sessions for a user when using ssh/sftp? I looked in the sshd_config, but didn't see anything. Using Transmit I could log on over 15 times.



[ Reply to This | # ]
10.4: Create a chrooted SSH/SFTP server
Authored by: Schwie on Wed, Nov 16 2005 at 8:57AM PST
I haven't had a problem with this and unfortunately I don't know of a way to limit the number of concurrent sessions. If you find out how to do this, please post back and I'll add the instructions to my website.

Brad


[ Reply to This | # ]
10.4: Create a chrooted SSH/SFTP server
Authored by: drgabb0 on Sat, Mar 22 2008 at 7:17PM PDT
Real hip hint, but has anybody successfully done this in Leopard? I must've spent half a day trying to so far, but no dice :(...

[ Reply to This | # ]