i know whats going on. i had that.
basically, when you chroot, your new destination root must contain bash(or an alternative shell which you must specify as an option), your new bin/sbin directories(if you dont have then there is no commands you can run, even ls), and you must have the libraries that bash uses.
read here:
every program/command you have trouble with after you chroot, do:
ldd target_program_with_path
and it will display what i need. and put that in.
as i see you also have issues with ssh(which i had too with ssh set up by default). basically you need to generate a set of "keys" in order for you connection to work.(as i understand the key is needed for encryption)
i went through hell and high water with setting up ssh... it took me so long i cant tell you all the steps. but until your client displays a message whether you want to accept the key, you are no go.
reinstalling ssh should generate the keys automatically for you. thats what i ended up doing i think.
|