SSH jailkit wrong folder

Discussion in 'Installation/Configuration' started by aldo, Jan 17, 2011.

  1. aldo

    aldo HowtoForge Supporter

    I create a ssh user with "Chroot Shell" set to "Jailkit" and home directory to /var/www/clients/client1/web1 (the default).

    So ssh user start folder is /home/web1, that is
    and can see only this path:

    The problem is that the right web site folder is
    which is unreachable by the ssh user.

    In this situation the user is unable to upload his site in the correct folder.

    Am I doing something wrong?

    How can I fix this problem?
  2. till

    till Super Moderator

    There is no problem and the paths are correct. The jail root of a website is /var/www/clients/client1/web1/ and every ssh user has its own homedire inside the jail (/var/www/clients/client1/web1/home/web1). The directory /var/www/clients/client1/web1/web is the web dir and of course this is reachable by the ssh user, as it has the same userid and it is inside the jail.
  3. aldo

    aldo HowtoForge Supporter

    You are right, sorry! :eek:

    Is it possible to change the default start folder to / (user root) or /web instead of /home/web1?
  4. till

    till Super Moderator

    No, thats not possible.

Share This Page