Re: trouble with chroot and sftp
Brought to you by:
xystrus
From: Derek M. <co...@pi...> - 2013-07-17 21:01:23
|
On Wed, Jul 17, 2013 at 02:47:46PM -0400, John Robison wrote: [...] > I uncomment chrootpath and set it to what should be a valid chroot path, > sftp logins will terminate immediately after I enter the SFTP password. > > If you know how to solve the above problem, great, but I'm more interested > in getting some useful logs that will help me troubleshoot this problem. Your problem (or rather, both of them) is that your jail is not set up correctly. You can't get the logs once you're chrooted until the chroot jail is set up properly. The documentation that comes with rssh goes to great detail to describe how to do this properly. The relevant documentation is in the tarball, if you installed from source, or usually installed in /usr/share/doc/rssh or some similar such distribution-dependent path, and is in the file called CHROOT. Some distributions also put a system-dependent script there, to help you set up a chroot jail. Alas, the process IS system dependent, which is why rssh doesn't do this for you. If you've read the docs and you still can't figure out how to make it work, the list archives are full of solutions to this problem; in fact it is very nearly the only thing that anyone ever posts about. One of them is bound to help you. -- Derek D. Martin http://www.pizzashack.org/ GPG Key ID: 0x81CFE75D |