I found an old mail thread in a goggle that said SF had a patch for openssh to provide chroot env for sftp, is that included in the current ssh release?
I'm looking for this too. The HPUX version of OpenSSH by HP has chroot right out of the package. We are migrating some systems from HP to IBM and we need that functionality in sftp.
There's a 3rd party open source software named "rssh" which can be used to run, among others, sftp-server in a chroot environment. Put simply, it works by changing the login shell of the respective user. Works fine for us with AIX5.
Hi, I succesfully bypassed this issue just changing in openssh 5.1p1 source after configure script and before make:
# On config.h undefine HAVE_SETPCRED not to user setpcred()
# function, otherwise sshd will drop down privilegies too early
# and can't do CHROOT with ChrootDirectory directive on sshd_config
perl -p -e 's/^#define HAVE_SETPCRED 1/#undef HAVE_SETPCRED/' -i config.h
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.