Chrooted SSH/SFTP

Discussion in 'HOWTO-Related Questions' started by BrianUK, Jan 11, 2011.

  1. BrianUK

    BrianUK New Member

    I've followed this how to however run into a couple of problems.

    an ls under my test users home directory shows

    bin dev etc home lib sbin usr

    which I guess is for them to have access to the programs defined under APPS= in

    When logging in via ssh the default directory is /home and not /home/test and I can also browse other users folders, that said I can't see anything lower than /home ie /usr.

    Ideally i'd like the user jailed to their own home folder and a neater way of having the 'APPS' organized so it's not in ever users directory and run chrooted sftp and ssh.

    here's a snip of the end of my sshd_config file

    Subsystem sftp /usr/lib/openssh/sftp-server
    Match Group users       
        ChrootDirectory /home
        AllowTCPForwarding no
        X11Forwarding no
    Any help would be greatly appreciated.
  2. falko

    falko Super Moderator ISPConfig Developer

    Are you sure this is the real /home directory, or is it the /home directory in the jail (i.e. /home/test/home)?
  3. BrianUK

    BrianUK New Member

    logging in pwd shows / and ls shows

    bin dev etc home lib sbin test test2 usr

    test2 is a seperate user so it seems it's the real /home

    when I cd /test ls shows

    bin dev etc home lib sbin usr
  4. BrianUK

    BrianUK New Member

    can anyone help me with this?
  5. falko

    falko Super Moderator ISPConfig Developer

    I have no idea what's wrong... :(
  6. BrianUK

    BrianUK New Member

    if I gave you a login to a 'fresh' install do you think you'd be able to have a try and see how the install goes for you? i'd happily make a donation or become a subscriber.

Share This Page