I have a bin directory in my chroot directory that contains commands like bash date ls...etc
If i simply chroot to my chroot directory. i am still able to invoke commands listed in the /bin.
However when i access through ssh (I ssh into another user that is attached to the chroot directory), i am unable to execute any commands from the /bin. It prompted "command not found".
on the other hand, if I cd into the bin directory - cd bin... I can invoked the ls command - ./ls (this is just to prove that I am in the correct chroot directory after I ssh in.)
I am following this link to set up chroot for my ssh access. https://www.tecmint.com/restrict-ssh-user-to-directory-using-chrooted-jail/
Any solution to this?