![]() |
Sftp and chroot
I have a redhat 9 server that we wish to get Sftp working in a way the the users are chrooted to their home diretorys and cannot move outside of them.
Is there a way to configure vsftp to allow authentication over ssh? Thanks for the assistance. |
FTP and Sftp are unrelated, SSH provides scp and sftp.
Compile OpenSSH-3.7.1p2 with the chroot patch from http://chrootssh.sourceforge.net, and read the docs and the Chrooted Sftp one. |
are there redhat rpms available anywhere with offering ssl with the patch for chroot
|
are there redhat rpms available anywhere with offering ssl with the patch for chroot
None I know of, but I build them myself, it's easy. You need to fetch openssh-3.7.1p2.tar.gz yourself. Then save it with the patch in /usr/src/redhat/SOURCES, or even better, if you build rpm's as unprivileged user like I do, save 'em in there in the SOURCES dir. Save the spec file in /usr/src/redhat/SPECS or unpriv user equivalent, cd to that dir and issue "rpm -ba openssh-3.7.1p2.spec.unspawn". All credits to the original owners and I do not take responsability if something breaks, so YMMV(VM). This the chrootssh patch: Code:
--- openssh-3.7.1p2/session.c.orig Tue Sep 23 10:59:08 2003 |
And this the diff between the original and my specfile:
Code:
--- openssh.spec Tue Sep 23 11:26:53 2003 |
All times are GMT -5. The time now is 12:36 PM. |