Ah yes, that's true.
A call to /bin/chroot in ~/.profile? Or would a restricted login shell do the trick?
I'm logged in as blog right now, with 'set -r' and a bash shell. I can run programs in my path, but I can't cd out of $HOME. Even cd .. doesn't work. Maybe that's the way to go. It's easy.
With the chroot method, you'd need to copy crucial files to ~/bin so blog can actually do something when they're logged in. I guess it would be trial and error. Start with the absolute minimum, and play around with the login, keep adding files until you get the level of functionality desired and stop there.
And, yes, this is getting a bit like setting up an ftp server.
personally, i wouldn't bother with trying to set up a restricted remote shell at all, and stick with chrooted sftp which has been done to death and is easy to set up, and FileZilla and other FTP clients now support SFTP.
The two posts above is something I want.
How exactly do I set it up though, the example I provided? Is it a plugin or a command I have to run?
Try this tutorial for setting up the chrooted SFTP on CentOS6:
Originally Posted by xavieranderson
It looks to have all the steps I needed the last time I set one up.