We have a very old server (it's kind of embarrassing to write the OS version), but this is the situation, and upgrade OS or ssh is not an option for some reasons.
uname -a > FreeBSD xxx 4.11-STABLE FreeBSD 4.11-STABLE
The problem is that some customer should upload files on a daily basis using sftp, and as far as I know we can't restrict folders using the directive
ChrootDirectory due to the old version of ssh:
OpenSSH_3.5p1 FreeBSD-20030924, SSH protocols 1.5/2.0
I have found some alternatives when googling, but most of them includes patching openssh, or installing some other program. We can't install e.g.
pureftpd because of the "old" server.
Is there a way of restricting folders when using
OpenSSH_3.5p1, or some other alternative that is easy to install on this server?
I repeat: upgrade OS or ssh is not an option for various reasons.
The situation with the server is that we can't risk that ssh isn't working when restarting, ssh is the only way for us to reach that.
I think it's kind of strange that I couldn't find any "easy" solution to this, there must have been many other that wants to restrict folders, also back in the days when our server was up to date.