I used jailkit to add users and restrict them to a jail directory. It works for Linux and PC clients connecting to the ssh server but when I connect with iPad it gives them access to everything.
I am using my iPad to connect to the SSH server on my linux PC using an SFTP app. I'm logging in with a username. When I log in using the username from a PC it works, restricting me to the jail root folder. But from my iPad it lets me access the entire file system.
I used this tutorial: