I am trying to set up vsftpd (or another application) to serve as sftp service on an Ubuntu server. I would like to expose sftp for one (or a handfull) of system users, ideally they should have a chroot jail to location different from their home directory. This seems like something I should be able to handle with vsftpd, however I do not understand what is happening and suspect "some other service" is actually responding to my sftp requests. This is what I have done:
- apt install vsftpd and configure to the best of my knowledge.
- I can sftp in to the server and put and get files, however the chroot does not work.
- I remove vsftpd with
apt purge vsftpd - I can still connect to the server with sftp and put and get files?
So - to it seems that the first problem I need to understand/solve is who is actually replying to my sftp requests - as it does not seem to be the vsftpd installation?
This is a stock Ubuntu 20.04 installation